CVE-2026-56317: Nuxt NoScript XSS Vulnerability – Impact & Patch Guidance
Nuxt, a popular Vue.js framework, has a cross-site scripting (XSS) vulnerability in its NoScript component. When developers use the NoScript component to render untrusted data—such as user-supplied query parameters—the framework writes that content directly to the DOM without sanitizing it. An attacker can craft a malicious URL containing JavaScript that executes in the victim's browser when they visit the page, potentially stealing session tokens, modifying page content, or redirecting users to phishing sites.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.1 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses (CWE)
- CWE-79
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-20 / 2026-06-24
NVD description (verbatim)
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.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-56317 is a stored/reflected XSS vulnerability affecting Nuxt versions before 4.4.7 and 3.x versions before 3.21.7. The NoScript component's implementation uses innerHTML to render slot content without HTML entity encoding or content validation. When noscript tags are implicitly closed by subsequent script tags in the document, injected payload executes in the document's security context. The vulnerability is particularly acute when route parameters or other user-controlled data flow into NoScript slots without sanitization at the application level.
Business impact
Organizations relying on Nuxt-based applications may face session hijacking, credential theft, defacement, or malware distribution if attackers exploit this XSS vector. Customer trust and compliance posture (PCI-DSS, HIPAA, SOC 2) can be damaged. The medium CVSS score reflects that exploitation requires user interaction (clicking a malicious link), but the Cross-Site impact means any user viewing the payload-containing page is at risk, including internal staff.
Affected systems
Nuxt framework versions 4.x prior to 4.4.7 and 3.x prior to 3.21.7 are vulnerable. Any web application built with Nuxt that renders untrusted data inside NoScript component slots is potentially exposed, particularly those that dynamically construct URLs or accept user input in query strings, fragments, or form data.
Exploitability
Exploitation is straightforward and requires no authentication or special system privileges. An attacker needs only to craft a URL containing JavaScript in a NoScript slot parameter and trick or socially engineer a user into visiting that URL. No patch bypass is needed; the vulnerability exists by design in the component. The attack surface is broad in applications that display user-generated content or dynamically construct links.
Remediation
Upgrade Nuxt to version 4.4.7 or later for v4 users, or to 3.21.7 or later for v3 users. Verify against the official Nuxt release notes and security advisories for exact version numbers. As an interim control, audit all uses of the NoScript component in your codebase and avoid passing untrusted or unsanitized data into its slots. Use content security policies (CSP) with strict script-src directives to mitigate the impact of any injected scripts.
Patch guidance
Apply the vendor patch immediately upon availability and compatibility testing. Nuxt's update should be rolled into your standard release cycle. For v3 users, prioritize upgrading to 3.21.7. For v4 users, target 4.4.7 or later. Test your application thoroughly in a staging environment to ensure the patch does not break any custom NoScript component usage. Review your CI/CD pipeline to enforce minimum Nuxt versions and block vulnerable versions from production deployments.
Detection guidance
Monitor application logs and web access logs for suspicious query parameters or POST data containing script tags (e.g., <script>, onclick=, onerror=, javascript: URIs). Deploy a Web Application Firewall (WAF) with XSS detection rules to block payloads with common script injection patterns. Use browser-based security monitoring tools or CSP violation reports to detect XSS attempts. Perform code reviews of any dynamic URL construction or untrusted data rendering in Nuxt components, focusing especially on NoScript component usage.
Why prioritize this
Although rated MEDIUM severity, this vulnerability merits prompt remediation because: (1) it affects a widely-used framework in the Vue.js ecosystem, (2) exploitation is trivial and requires no advanced skill, (3) the impact—session hijacking and credential theft—is high even if user interaction is required, and (4) many Nuxt applications likely handle user input in ways that expose this vector. Organizations with public-facing Nuxt apps should prioritize this in the current sprint or week.
Risk score, explained
The CVSS 3.1 score of 6.1 (MEDIUM) reflects: Network-based attack vector (AV:N) with low attack complexity (AC:L) and no privilege requirement (PR:N), but it requires user interaction (UI:R). The impact is limited to confidentiality and integrity (C:L, I:L) with no availability impact, and it changes the scope (S:C), meaning the impact extends beyond the vulnerable component. The score appropriately captures that while exploitation is easy and the impact spans trust boundaries, it is not a critical remote code execution or authentication bypass.
Frequently asked questions
Do we need to patch immediately if we don't use the NoScript component?
No. If your Nuxt application never uses the NoScript component in its templates or layouts, your exposure is minimal. However, we recommend auditing your codebase to confirm this and applying the patch anyway as part of normal security hygiene, since future code changes could introduce the component.
Can Content Security Policy (CSP) fully protect us from this vulnerability?
A strict CSP with script-src 'none' or script-src 'nonce-...' can significantly reduce the risk by blocking inline script execution. However, CSP is a defense-in-depth control, not a substitute for patching. Apply the Nuxt update as your primary remediation.
Is this vulnerability actively being exploited in the wild?
As of the published date (June 2026), this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, absence from KEV does not mean it is unexploited in the wild. Given the trivial nature of XSS exploitation, we recommend treating it as exploitable and prioritizing patching accordingly.
How do we know if our application was compromised by this vulnerability?
Review access logs for unusual query parameters, especially those containing HTML/JavaScript. Check server-side session logs for anomalies in authentication or privilege escalation. Perform a code review and static analysis of NoScript component usage to identify high-risk data flows. If you suspect active exploitation, consider engaging a security incident response team.
This analysis is provided for informational purposes and does not constitute professional security advice. Verify all patch versions, release notes, and deployment procedures against official Nuxt vendor advisories. Organizations must conduct their own risk assessment and testing before deploying patches in production. SEC.co makes no warranties regarding the completeness or timeliness of vulnerability information and is not liable for outcomes of remediation decisions. Source: NVD (public-domain), retrieved 2026-07-28. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-46342MEDIUMNuxt Island Hash Validation Bypass Vulnerability
- CVE-2026-53722MEDIUMNuxt <NuxtLink> XSS Vulnerability – Versions 3.21.7 & 4.4.7 Required
- CVE-2016-20070MEDIUMPrivilege Escalation & Stored XSS in WordPress Booking Calendar Contact Form 1.0.23
- CVE-2018-25384MEDIUMStored XSS in Wikidforum 2.20 Allows Authenticated Attackers to Inject Malicious Scripts
- CVE-2019-25731MEDIUMStored XSS in Zuz Music 2.1 Contact Form
- CVE-2019-25737MEDIUMStored XSS in Live Chat Unlimited 2.8.3 – Admin Session Compromise
- CVE-2019-25739MEDIUMGigToDo 1.3 Stored XSS Vulnerability in Proposal Descriptions
- CVE-2019-25742MEDIUMStored XSS in Zoner Real Estate WordPress Theme 4.1.1 – Admin Account Compromise Risk