XSS in Nuxt
CVE-2026-56317
Nuxt before 4.4.7 (and the 3.x branch before 3.21.7) contains a cross-site scripting vulnerability in the NoScript component that writes slot content to innerHTML without escaping. Attackers can inject malicious scripts through untrusted data in NoScript slots, such as route.query parameters, which execute in the document context when the noscript tag is implicitly closed by script tags.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.003, 28.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Nuxt — versions 4.0.0, 4.4.7, 0
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-m3q2-p4fw-w38m) (vendor-advisory, Patch, Mitigation, Vendor Advisory)
- https://github.com/nuxt/nuxt/commit/4b054e9d95f8daf366cb144b52782047c511a66e (Patch, patch)
- https://github.com/nuxt/nuxt/commit/7fea9fd687f1dacbfb63db5fae5839896b017a0e (Patch, patch)
- VulnCheck Advisory: Nuxt - Cross-Site Scripting via NoScript Component Slot Content (Patch, Third Party Advisory, third-party-advisory)