Cross-site scripting in Next.js - CVE-2026-44580

 

Cross-site scripting in Next.js - CVE-2026-44580

Published: May 6, 2026


Vulnerability identifier: #VU130275
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-44580
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary JavaScript in a visitor's browser.

The vulnerability exists due to improper neutralization of input during web page generation in beforeInteractive script content serialization when embedding untrusted content into the document. A remote attacker can supply specially crafted input to execute arbitrary JavaScript in a visitor's browser.

User interaction is required to load the affected page.


Affected software

Next.js

How to mitigate CVE-2026-44580

Install security update from vendor's website.

Next.js - addressed in versions 15.5.16, 16.2.5

External References

Related Security Bulletins