CVE-2026-44580
MEDIUM 6.1CVSS 3.1Next.js has cross-site scripting in beforeInteractive scripts with untrusted input
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.
- Published
- 13 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-gx5p-jg67-6x7h
- Sources
- NVDJSONOSV GHSA-gx5p-jg67-6x7hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vercel | next.jscpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* |
>= 13.0.0, < 15.5.16 | 15.5.16 |
| NVD | vercel | next.jscpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* |
>= 16.0.0, < 16.2.5 | 16.2.5 |
| OSV | npm | next | >= 13.0.0, < 15.5.16 | 15.5.16 |
| OSV | npm | next | >= 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, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44580 · ADVISORY
- https://github.com/vercel/next.js · PACKAGE
- https://github.com/vercel/next.js/releases/tag/v15.5.16 · WEB
- https://github.com/vercel/next.js/releases/tag/v16.2.5 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 May 2026)