What’s Vulnerable › Vulnerabilities

CVE-2026-56317: Nuxt - Cross-Site Scripting via NoScript Component Slot Content

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 products

How to fix

Upgrade to a fixed version: nuxt 3.21.7, 4.4.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-56317 or the next vulnerability affects your stack