CVE-2026-56317 Details
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.
A cross-site scripting vulnerability has been identified in Nuxt versions 4.0.0 prior to 4.4.7 and in the 3.x branch prior to 3.21.7. The issue arises in the NoScript component, which improperly handles slot content by writing it to innerHTML without escaping. This flaw allows attackers to inject malicious scripts through untrusted data in NoScript slots, such as route.query parameters. The injected scripts execute in the document context when the NoScript tag is implicitly closed by script tags.
Users can upgrade to Nuxt versions 4.4.7 or 3.21.7, where this vulnerability has been patched. The fix involves escaping NoScript slot content and writing it to textContent instead of innerHTML. For applications that cannot be immediately upgraded, avoid placing untrusted input into NoScript slots or sanitize the data before use.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nuxt nuxt | < 3.21.7 >= 4.0.0, < 4.4.7 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 24, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2026 | Initial Analysis | [email protected] |
| Jun 20, 2026 | New CVE Received | [email protected] |