# CVE-2024-27982: Other in Node

> Attackers can exploit HTTP request smuggling in Node.js by using malformed headers with spaces, potentially bypassing security controls or accessing unauthorized data.

- **Severity:** Medium 6.5 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 May 2024
- **Updated:** 4 Nov 2025
- **Also known as:** ALPINE-CVE-2024-27982, AZL-40349, AZL-40352, BELL-CVE-2024-27982, BIT-node-2024-27982, BIT-node-min-2024-27982, CLEANSTART-2026-GV93850, CLEANSTART-2026-LK85275, CLSA-2025-1758294053, DEBIAN-CVE-2024-27982, GHSA-hg6j-8h7m-3w3j, UBUNTU-CVE-2024-27982

## What is CVE-2024-27982?

CVE-2024-27982 is a medium-severity vulnerability in NodeJS Node, published on 7 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The team has identified a critical vulnerability in the http server of the most recent version of Node, where malformed headers can lead to HTTP request smuggling. Specifically, if a space is placed before a content-length header, it is not interpreted correctly, enabling attackers to smuggle in a second request within the body of the first.

Weakness: CWE-444 (Inconsistent Interpretation of HTTP Requests)

## Which versions are affected by CVE-2024-27982?

2 open source packages ship an affected version, including node and node-min.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `node` | Bitnami | All versions | 18.20.1, 20.12.1, 21.7.2 |
| `node-min` | Bitnami | All versions | 18.20.1, 20.12.1, 21.7.2 |

## How do I fix CVE-2024-27982?

Upgrade node to a fixed version for your release line: 18.20.1, 20.12.1 or 21.7.2.

## Is CVE-2024-27982 being exploited?

There is no known exploitation of CVE-2024-27982 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-27982 and fix it if it is affected.

What it is: CVE-2024-27982 is a medium-severity vulnerability in NodeJS Node, published on 7 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-27982 in the wild and no public exploit code.

Affected packages and fixed versions:
- node (Bitnami): affected all versions; fixed in 18.20.1, 20.12.1, 21.7.2
- node-min (Bitnami): affected all versions; fixed in 18.20.1, 20.12.1, 21.7.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-27982/ (Markdown: https://insights.sbomify.com/CVE-2024-27982/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-27982
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-27982
- OSV: https://osv.dev/vulnerability/CVE-2024-27982

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-27982/
Summaries are generated and may contain mistakes; the official description above is the record.
