CVE-2026-34405

Nuxt OG Image vulnerable to reflected XSS via query parameter injection into HTML attributes

Published Mar 31, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
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
Type Values Removed Values Added
First Time appeared Nuxt-modules
Nuxt-modules og-image
Vendors & Products Nuxt-modules
Nuxt-modules og-image
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 1, 2026, 6:43 PM
Reserved
Mar 27, 2026, 1:45 PM
Status
Analyzed
Published
Mar 31, 2026, 10:16 PM
Modified
Jul 24, 2026, 9:10 PM