Vulnerability · Published Jun 20, 2026 · Assigned by VulnCheck
CVE-2026-56317Nuxt - Cross-Site Scripting via NoScript Component Slot Content
Low 2.3
In plain English
A low-severity cross-site scripting in Nuxt from Nuxt. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | nuxt | 4.4.7 | GHSA-m3q2-p4fw-w38m |
| npm | nuxt | 3.21.7 | GHSA-m3q2-p4fw-w38m |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
References
- GHSA Advisory GHSA-m3q2-p4fw-w38m vendor-advisory
- https://github.com/nuxt/nuxt/commit/4b054e9d95f8daf366cb144b52782047c511a66e patch
- https://github.com/nuxt/nuxt/commit/7fea9fd687f1dacbfb63db5fae5839896b017a0e patch
- VulnCheck Advisory: Nuxt - Cross-Site Scripting via NoScript Component Slot Content third-party-advisory