next is vulnerable to Cross-Site Scripting (XSS)
47
Medium Risk
App Router responses using CSP nonces can reflect malformed nonce values derived from request headers into HTML. In shared-cache deployments, this can poison cached content and later trigger script execution for other users. The bug is an unsafe nonce embedding path in rendered output. The fix rejects malformed nonces and applies stricter sanitization before HTML insertion.
You are affected if you are using a version that falls within the vulnerable range.
next is vulnerable to Cross-Site Scripting (XSS) in versions 13.4.0 - 15.5.15 and 16.0.0 - 16.2.4.
Upgrade the next library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant