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.
Problem types
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
4.0.0 (semver) before 4.4.7
4.4.7 (semver)
Any version before 3.21.7
3.21.7 (semver)
Credits
alcls01111
References
github.com/nuxt/nuxt/security/advisories/GHSA-m3q2-p4fw-w38m (GHSA Advisory GHSA-m3q2-p4fw-w38m)
github.com/...ommit/4b054e9d95f8daf366cb144b52782047c511a66e
github.com/...ommit/7fea9fd687f1dacbfb63db5fae5839896b017a0e
www.vulncheck.com/...ing-via-noscript-component-slot-content (VulnCheck Advisory: Nuxt - Cross-Site Scripting via NoScript Component Slot Content)