CVE-2026-56317
Received Received - Intake
Cross-Site Scripting in Nuxt.js NoScript Component

Publication date: 2026-06-20

Last updated on: 2026-06-20

Assigner: VulnCheck

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-20
Last Modified
2026-06-20
Generated
2026-06-20
AI Q&A
2026-06-20
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
nuxt nuxt to 3.21.7 (exc)
nuxt nuxt to 4.4.6 (inc)
nuxt nuxt to 3.21.6 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-56317 is a cross-site scripting (XSS) vulnerability in Nuxt.js versions before 4.4.7 and 3.x versions before 3.21.7. It occurs in the globally registered <NoScript> component, which writes slot content directly to the innerHTML of the <noscript> tag without escaping it. This allows attackers to inject malicious scripts through untrusted data, such as route.query parameters, which then execute in the document context when the <noscript> tag is implicitly closed by script tags.

The vulnerability arises because the HTML parser treats the content inside the <noscript> tag in the head section in a way that any tag other than <link>, <meta>, <noframes>, or <style> implicitly closes the <noscript> tag, enabling injected scripts to run.

This issue was fixed by escaping the slot content using escapeHtml and writing it to textContent instead of innerHTML, preventing script execution.

Impact Analysis

This vulnerability can allow attackers to execute malicious scripts in the context of your web application by injecting untrusted data into the <NoScript> component slots. Such script execution can lead to unauthorized actions, data theft, or manipulation of the web page content.

However, the severity of this vulnerability is rated low (CVSS score 2.3) due to limited exploitability and impact.

To mitigate the risk, it is recommended to update Nuxt.js to versions 4.4.7 or 3.21.7 or later, or avoid interpolating untrusted input into <NoScript> slots and sanitize any dynamic content before rendering.

Detection Guidance

This vulnerability involves the Nuxt.js <NoScript> component writing untrusted slot content directly to innerHTML without escaping, which can lead to cross-site scripting (XSS) attacks. Detection involves checking if your Nuxt.js application is running a vulnerable version (4.0.0 to 4.4.6 or 3.21.0 to 3.21.6) and if untrusted data such as route.query parameters are interpolated into <NoScript> slots.

To detect the vulnerability on your system, you can:

  • Check the Nuxt.js version used in your project by running: `npm list nuxt` or `yarn list nuxt`.
  • Search your codebase for usage of the <NoScript> component with dynamic slot content, especially interpolations like `{{ route.query.* }}`.
  • Inspect server-rendered HTML responses for <noscript> tags containing unescaped HTML or script tags that could indicate injection.
  • Use web vulnerability scanners or browser developer tools to test if injecting script payloads into route.query parameters results in script execution within the <noscript> tag.
Mitigation Strategies

Immediate mitigation steps for this vulnerability include:

  • Upgrade Nuxt.js to version 4.4.7 or later, or 3.21.7 or later, where the vulnerability is fixed by escaping slot content and using textContent instead of innerHTML.
  • Avoid interpolating untrusted input, such as route.query parameters, directly into <NoScript> slots.
  • Sanitize or escape any dynamic content before rendering it inside <NoScript> components as a temporary workaround.
Compliance Impact

The CVE-2026-56317 vulnerability is a cross-site scripting (XSS) issue in Nuxt.js that allows attackers to inject malicious scripts through untrusted data. Such vulnerabilities can potentially lead to unauthorized access or manipulation of user data.

While the provided context and resources do not explicitly mention compliance with standards like GDPR or HIPAA, XSS vulnerabilities generally pose risks to data confidentiality and integrity, which are critical aspects of these regulations.

Organizations using affected Nuxt.js versions without applying the patch or proper mitigations may face increased risk of data breaches or unauthorized data exposure, potentially impacting their compliance posture under regulations that require protection of personal or sensitive information.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56317. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart