CVE-2026-44581: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in vercel next.js
Next.js is a React framework for building full-stack web applications. From 13.4.0 to before 15.5.16 and 16.2.5, App Router applications that rely on CSP nonces can be vulnerable to stored cross-site scripting when deployed behind shared caches. In affected versions, malformed nonce values derived from request headers could be reflected into rendered HTML in an unsafe way, allowing an attacker to poison cached responses and cause script execution for later visitors. This vulnerability is fixed in 15.5.16 and 16.2.5.
AI Analysis
Technical Summary
CVE-2026-44581 is a stored cross-site scripting vulnerability in the Next.js React framework affecting App Router applications that use Content Security Policy (CSP) nonces and are deployed behind shared caches. In affected versions (>=13.4.0, <15.5.16 and >=16.0.0, <16.2.5), malformed nonce values from request headers can be reflected into HTML output without proper neutralization, enabling attackers to poison cached responses. This can lead to script execution in the browsers of subsequent users accessing the cached content. The vulnerability is addressed in Next.js versions 15.5.16 and 16.2.5.
Potential Impact
An attacker can exploit this vulnerability to inject malicious scripts into cached responses, resulting in stored cross-site scripting attacks that affect users who receive the poisoned cache content. The impact includes limited confidentiality and integrity loss due to script execution in the victim's browser. There is no direct availability impact. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Upgrade Next.js to version 15.5.16 or later in the 15.x series, or 16.2.5 or later in the 16.x series, where this vulnerability is fixed. There is no official vendor advisory provided here, but the fix is confirmed in the version ranges specified. Patch status is confirmed by the version information. No additional mitigation steps are indicated.
CVE-2026-44581: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in vercel next.js
Description
Next.js is a React framework for building full-stack web applications. From 13.4.0 to before 15.5.16 and 16.2.5, App Router applications that rely on CSP nonces can be vulnerable to stored cross-site scripting when deployed behind shared caches. In affected versions, malformed nonce values derived from request headers could be reflected into rendered HTML in an unsafe way, allowing an attacker to poison cached responses and cause script execution for later visitors. This vulnerability is fixed in 15.5.16 and 16.2.5.
CVSS v3.1
Score 4.7medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-44581 is a stored cross-site scripting vulnerability in the Next.js React framework affecting App Router applications that use Content Security Policy (CSP) nonces and are deployed behind shared caches. In affected versions (>=13.4.0, <15.5.16 and >=16.0.0, <16.2.5), malformed nonce values from request headers can be reflected into HTML output without proper neutralization, enabling attackers to poison cached responses. This can lead to script execution in the browsers of subsequent users accessing the cached content. The vulnerability is addressed in Next.js versions 15.5.16 and 16.2.5.
Potential Impact
An attacker can exploit this vulnerability to inject malicious scripts into cached responses, resulting in stored cross-site scripting attacks that affect users who receive the poisoned cache content. The impact includes limited confidentiality and integrity loss due to script execution in the victim's browser. There is no direct availability impact. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Upgrade Next.js to version 15.5.16 or later in the 15.x series, or 16.2.5 or later in the 16.x series, where this vulnerability is fixed. There is no official vendor advisory provided here, but the fix is confirmed in the version ranges specified. Patch status is confirmed by the version information. No additional mitigation steps are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-06T21:49:12.424Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04ba26cbff5d8610f4836c
Added to database: 05/13/2026, 17:51:34 UTC
Last enriched: 05/20/2026, 18:26:51 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 65
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.