CVE Database›Document archive›CVE-2026-44572

CVE-2026-44572

next.js: Next.js: Denial of Service due to improper handling of x-nextjs-data header with redirects

Loading…

Severity

Moderate

Red Hat Product Security

5.9

CVSS 3.1

Review impact separately from score.

Published · May 14, 2026

Updated · July 3, 2026

Description

A flaw was found in Next.js. An external client could exploit this vulnerability by sending a x-nextjs-data header on a request to a path handled by middleware that returns a redirect. This action could cause the middleware or proxy to incorrectly process the request as a data request, replacing the standard Location redirect header with an internal x-nextjs-redirect header. If the application is deployed behind a caching Content Delivery Network (CDN) or reverse proxy, a malicious request could poison the cached redirect response, leading to a denial of service for subsequent visitors attempting to access the affected path.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, configure any caching Content Delivery Network (CDN) or reverse proxy deployed in front of Next.js applications to either not cache 3xx redirect responses for paths handled by middleware, or to ensure that the cache key for 3xx responses explicitly varies on the x-nextjs-data header. This prevents an attacker from poisoning the cache with an unusable redirect response. Consult your CDN or reverse proxy documentation for specific configuration instructions. A service reload or restart of the CDN/reverse proxy may be required for changes to take effect.

CVSS / CWE

CVSS 3.1 · 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CWE-444 · Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')