CVE-2026-29057: Next.js HTTP Request Smuggling Vulnerability in Rewrites

next Updated 17 Mar 2026

Summary

17/03/2026
Yes i
Moderate
6.3

CVE-2026-29057: Next.js: HTTP request smuggling in rewrites. Affects next across 2 version ranges.

>= 9.5.0, < 15.5.13 >= 16.0.0-beta.0, < 16.1.7

Fixed in 15.5.13 or 16.1.7, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Next.js is a popular React framework that enables developers to build server-rendered applications with ease. It provides features such as automatic code splitting, server-side rendering, and static site generation. However, like any software, it can be vulnerable to security issues. This specific vulnerability allows for HTTP request smuggling through rewritten routes, which can lead to unauthorized access to backend services.

Vulnerability Detail

The vulnerability arises when Next.js rewrites proxy traffic to an external backend. A malicious actor can craft a DELETE or OPTIONS request using Transfer-Encoding: chunked, leading to a request boundary disagreement between the proxy and the backend. This discrepancy can allow an attacker to smuggle a second request to unintended backend routes, potentially accessing sensitive internal endpoints. The issue is rooted in an upstream library used by Next.js, which mishandles the content-length and transfer-encoding headers.

How To Fix

Latest published version: 16.4.2 as of 22 Oct 2026

npm install next@16.4.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 9.5.0, < 15.5.13 15.5.13
    npm install next@15.5.13
  • >= 16.0.0-beta.0, < 16.1.7 16.1.7
    npm install next@16.1.7

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If you cannot upgrade immediately, consider implementing the following workarounds: Block chunked DELETE and OPTIONS requests on rewritten routes at your edge or proxy. Additionally, enforce strict authentication and authorization on backend routes as per the security guidance provided by Next.js.

Conclusion

In summary, CVE-2026-29057 is a moderate severity vulnerability in Next.js that allows for HTTP request smuggling through rewritten routes. It is crucial to update to the patched versions or implement workarounds to protect your application from potential attacks.

See every vulnerability recorded for next →

Share this vulnerability

FAQ

HTTP request smuggling is a technique used by attackers to send malicious requests to a server by exploiting discrepancies in how different components of a web application interpret HTTP requests.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

An attacker could gain unauthorized access to sensitive backend routes, potentially compromising the security of internal services and data.

No, the vulnerability affects specific versions of Next.js. Ensure you are using the patched versions to mitigate the risk.

The CVSS score of this vulnerability is 6.3, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for next.

How To Fix

Latest published version: 16.4.2 as of 22 Oct 2026

npm install next@16.4.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 9.5.0, < 15.5.13 15.5.13
    npm install next@15.5.13
  • >= 16.0.0-beta.0, < 16.1.7 16.1.7
    npm install next@16.1.7

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback