Intel

AIKIDO-2026-10755

next is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-gx5p-jg67-6x7h Published May 7, 2026

61

Medium Risk

This Affects:

JSnext
13.0.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

Inline beforeInteractive script serialization can embed untrusted input without sufficient escaping. Attacker-controlled content can break script boundaries and execute arbitrary JavaScript in the browser. This affects applications that pass untrusted data into these script props. The fix HTML-escapes serialized script content before 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.0.0 - 15.5.15 and 16.0.0 - 16.2.4.

How to fix this

Upgrade the next library to the patch version.