Description
Nuxt OG Image generates OG Images with Vue templates in Nuxt. Prior to version 6.2.5, the image‑generation component by the URI: /_og/d/ (and, in older versions, /og-image/) contains a vulnerability that allows injection of arbitrary attributes into the HTML page body. This issue has been patched in version 6.2.5.
Published: 2026-03-31
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Reflected Cross‑Site Scripting (XSS)
Action: Apply Patch
AI Analysis

Impact

Nuxt OG Image renders Open Graph images using Vue templates. Prior to version 6.2.5, the image‑generation route allows an attacker to inject arbitrary attributes into the HTML body through a crafted query string. This enables reflected Cross‑Site Scripting, which can be used to steal session data, deface pages, or execute arbitrary code in the context of the victim browser. The weakness is a classic reflected XSS flaw (CWE‑79).

Affected Systems

All installations of the Nuxt OG Image module from nuxt‑modules that use the og-image package and are running a release older than 6.2.5. The vulnerable endpoints are /_og/d/ and, in earlier releases, /og‑image/.

Risk and Exploitability

The vulnerability scores a moderate CVSS 6.1 and has a very low EPSS probability of less than 1 %. It is not listed in CISA’s KEV catalog, suggesting no confirmed public exploitation. Attackers can trigger the flaw by sending a specially crafted HTTP request to the exposed endpoints, which then reflects the malicious query into the generated HTML. Even though the impact is limited to the browser context, the ability to drop scripts poses significant threats in compromised user sessions.

Generated by OpenCVE AI on April 13, 2026 at 16:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Nuxt OG Image module to version 6.2.5 or later, which removes the injection point.
  • Verify the upgrade by checking the module’s version and testing the image endpoints for proper sanitization.
  • If an immediate upgrade is not possible, restrict access to the /_og/d/ and /og-image/ URLs to trusted administrative users or apply an internal firewall rule to block external requests.
  • Implement a strict Content Security Policy to mitigate the impact of any residual XSS attempts.

Generated by OpenCVE AI on April 13, 2026 at 16:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mg36-wvcr-m75h Nuxt OG Image is vulnerable to reflected XSS via query parameter injection into HTML attributes
History

Mon, 13 Apr 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Nuxt
Nuxt og Image
CPEs cpe:2.3:a:nuxt:og_image:*:*:*:*:*:node.js:*:*
Vendors & Products Nuxt
Nuxt og Image

Thu, 02 Apr 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Nuxt-modules
Nuxt-modules og-image
Vendors & Products Nuxt-modules
Nuxt-modules og-image

Wed, 01 Apr 2026 23:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 01 Apr 2026 02:15:00 +0000

Type Values Removed Values Added
Description Nuxt OG Image generates OG Images with Vue templates in Nuxt. Prior to version 6.2.5, the image‑generation component by the URI: /_og/d/ (and, in older versions, /og-image/) contains a vulnerability that allows injection of arbitrary attributes into the HTML page body. This issue has been patched in version 6.2.5.
Title Nuxt OG Image vulnerable to reflected XSS via query parameter injection into HTML attributes
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

Nuxt Og Image
Nuxt-modules Og-image
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-01T18:43:23.097Z

Reserved: 2026-03-27T13:45:29.620Z

Link: CVE-2026-34405

cve-icon Vulnrichment

Updated: 2026-04-01T18:43:18.343Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-31T22:16:18.813

Modified: 2026-04-13T15:17:23.693

Link: CVE-2026-34405

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-14T16:42:13Z

Weaknesses