HTTP Request Smuggling in Node.js

nodejs Updated 02 Oct 2025

Summary

06/01/2021
N/A
Yes i
Medium
6.5

CVE-2020-8287: Node.js versions before 10.23.1, 12.20.1, 14.15.4, 15.5.1 allow two copies of a header field in an HTTP request (for example, two Transfer-Encoding header fields). Affects nodejs across 2 version ranges.

< 12.20.1-r0 >= cf41627411886000429bde058a6594fb7f6d6d47, < 811be91dfe623c7569f5fd87b1eaf46074334c94

Fixed in 12.20.1-r0. 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

Node.js is a popular JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to build scalable and high-performance applications. However, Node.js versions before 10.23.1, 12.20.1, 14.15.4, and 15.5.1 are vulnerable to HTTP Request Smuggling.

Vulnerability Detail

HTTP Request Smuggling occurs when an attacker sends a specially crafted HTTP request that tricks the server into interpreting it differently than the client. In the case of Node.js, if a request contains two copies of a header field (e.g., two Transfer-Encoding header fields), Node.js identifies the first header field and ignores the second. This can lead to an attacker smuggling malicious requests or bypassing security measures.

How To Fix

Minimum fixed version

12.20.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed versions of Node.js to mitigate the risk.

Conclusion

HTTP Request Smuggling is a critical vulnerability in Node.js versions before 10.23.1, 12.20.1, 14.15.4, and 15.5.1. It allows attackers to manipulate HTTP requests and potentially bypass security measures. To mitigate this risk, it is crucial to update Node.js to the fixed versions mentioned. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

HTTP Request Smuggling is a technique where an attacker manipulates the HTTP request to bypass security measures or perform malicious actions.

This vulnerability can allow an attacker to smuggle malicious requests, bypass security measures, or perform unauthorized actions on the server.

Node.js versions before 10.23.1, 12.20.1, 14.15.4, and 15.5.1 are affected by this vulnerability.

No, there is no known workaround for this vulnerability. It is recommended to update to the fixed versions of Node.js.

To update Node.js, follow the official documentation provided by the Node.js project. Install versions 10.23.1, 12.20.1, 14.15.4, or 15.5.1 or later.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

12.20.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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