Intel

AIKIDO-2026-10756

next is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-ffhc-5mcf-pf4q Published May 7, 2026

47

Medium Risk

This Affects:

JSnext
13.4.0 - 15.5.15
Fixed in 15.5.16
16.0.0 - 16.2.4
Fixed in 16.2.5
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

next is vulnerable to Cross-Site Scripting (XSS) in versions 13.4.0 - 15.5.15 and 16.0.0 - 16.2.4.

How to fix this

Upgrade the next library to the patch version.