CVE-2026-44572: CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data in vercel next.js
Next.js is a React framework for building full-stack web applications. From 12.2.0 to before 15.5.16 and 16.2.5, an external client could send a x-nextjs-data header on a normal request to a path handled by middleware that returns a redirect. When that happened, the middleware/proxy could treat the request as a data request and replace the standard Location redirect header with the internal x-nextjs-redirect header. Browsers do not follow x-nextjs-redirect, so the response became an unusable redirect for normal clients. If the application was deployed behind a CDN or reverse proxy that caches 3xx responses without varying on this header, a single attacker request could poison the cached redirect response for the affected path. Subsequent visitors could then receive a cached redirect response without a Location header, causing a denial of service for that redirect path until the cache entry expired or was purged. This vulnerability is fixed in 15.5.16 and 16.2.5.
AI Analysis
Technical Summary
Next.js versions 12.2.0 to before 15.5.16 and 16.0.0 to before 16.2.5 contain a vulnerability where an external client can send a x-nextjs-data header on requests to middleware-handled redirect paths. This causes the middleware or proxy to treat the request as a data request and replace the standard Location redirect header with an internal x-nextjs-redirect header. Browsers do not recognize x-nextjs-redirect, resulting in unusable redirects. When deployed behind caching CDNs or reverse proxies that do not vary cache entries based on this header, an attacker can poison the cached redirect response. This leads to denial of service for users accessing the affected redirect path until cache expiration or purging. The vulnerability is addressed in Next.js versions 15.5.16 and 16.2.5.
Potential Impact
An attacker can cause denial of service on specific redirect paths by poisoning cached redirect responses in CDNs or reverse proxies that do not vary cache entries by the x-nextjs-data header. This results in subsequent users receiving redirect responses without a valid Location header, making the redirect unusable until the cache entry expires or is purged. There is no direct confidentiality or integrity impact reported.
Mitigation Recommendations
This vulnerability is fixed in Next.js versions 15.5.16 and 16.2.5. Users should upgrade to at least these versions to remediate the issue. If upgrading immediately is not possible, ensure that caching CDNs or reverse proxies vary cache entries based on the x-nextjs-data header or disable caching of 3xx redirect responses on affected paths to prevent cache poisoning. Patch status is not explicitly stated as 'official-fix' in the vendor advisory, but the fixed versions are clearly identified. Check the Next.js official release notes for confirmation and additional guidance.
CVE-2026-44572: CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data in vercel next.js
Description
Next.js is a React framework for building full-stack web applications. From 12.2.0 to before 15.5.16 and 16.2.5, an external client could send a x-nextjs-data header on a normal request to a path handled by middleware that returns a redirect. When that happened, the middleware/proxy could treat the request as a data request and replace the standard Location redirect header with the internal x-nextjs-redirect header. Browsers do not follow x-nextjs-redirect, so the response became an unusable redirect for normal clients. If the application was deployed behind a CDN or reverse proxy that caches 3xx responses without varying on this header, a single attacker request could poison the cached redirect response for the affected path. Subsequent visitors could then receive a cached redirect response without a Location header, causing a denial of service for that redirect path until the cache entry expired or was purged. This vulnerability is fixed in 15.5.16 and 16.2.5.
CVSS v3.1
Score 3.7low
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Next.js versions 12.2.0 to before 15.5.16 and 16.0.0 to before 16.2.5 contain a vulnerability where an external client can send a x-nextjs-data header on requests to middleware-handled redirect paths. This causes the middleware or proxy to treat the request as a data request and replace the standard Location redirect header with an internal x-nextjs-redirect header. Browsers do not recognize x-nextjs-redirect, resulting in unusable redirects. When deployed behind caching CDNs or reverse proxies that do not vary cache entries based on this header, an attacker can poison the cached redirect response. This leads to denial of service for users accessing the affected redirect path until cache expiration or purging. The vulnerability is addressed in Next.js versions 15.5.16 and 16.2.5.
Potential Impact
An attacker can cause denial of service on specific redirect paths by poisoning cached redirect responses in CDNs or reverse proxies that do not vary cache entries by the x-nextjs-data header. This results in subsequent users receiving redirect responses without a valid Location header, making the redirect unusable until the cache entry expires or is purged. There is no direct confidentiality or integrity impact reported.
Mitigation Recommendations
This vulnerability is fixed in Next.js versions 15.5.16 and 16.2.5. Users should upgrade to at least these versions to remediate the issue. If upgrading immediately is not possible, ensure that caching CDNs or reverse proxies vary cache entries based on the x-nextjs-data header or disable caching of 3xx redirect responses on affected paths to prevent cache poisoning. Patch status is not explicitly stated as 'official-fix' in the vendor advisory, but the fixed versions are clearly identified. Check the Next.js official release notes for confirmation and additional guidance.
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: 6a04a508cbff5d8610e80456
Added to database: 05/13/2026, 16:21:28 UTC
Last enriched: 05/20/2026, 18:46:42 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 124
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.