CVE-2026-44580 Next.js: Cross-site scripting in beforeInteractive scripts with untrusted input
MediumCVSS 6.1
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Next.js is a React framework for building full-stack web applications. From 13.0.0 to before 15.5.16 and 16.2.5, applications that use beforeInteractive scripts together with untrusted content can be vulnerable to cross-site scripting. In affected versions, serialized script content was not escaped safely before being embedded into the document, which could allow attacker-controlled input to break out of the intended script context and execute arbitrary JavaScript in a visitor's browser. This vulnerability is fixed in 15.5.16 and 16.2.5.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vercel next.js | = >= 13.0.0, < 15.5.16 | No fix listed |
| vercel next.js | = >= 16.0.0, < 16.2.5 | No fix listed |
| npm next(npm) | >= 13.0.0, < 15.5.16 | 15.5.16 |
| npm next(npm) | >= 16.0.0, < 16.2.5 | 16.2.5 |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhtas/rekor-search-ui-rhel9(Red Hat:trusted_artifact_signer:1) | All versions | No fix listed |
| redhat/next(Red Hat:amq_streams:3) | All versions | No fix listed |
| vercel next.js | >= 13.0.0, < 15.5.16 | 15.5.16 |
| vercel next.js | >= 16.0.0, < 16.2.5 | 16.2.5 |
References
- https://github.com/vercel/next.js/security/advisories/GHSA-gx5p-jg67-6x7h mitigation vendor-advisory
- github.com
- github.com
- nvd.nist.gov third-party-advisory
- github.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2477186 issue-tracking
- www.cve.org