Authorization Bypass Vulnerability in Node.js Due to Trailing White Space in HTTP Headers

nodejs Updated 02 Oct 2025

Summary

07/02/2020
N/A
Yes i
Critical
9.8

ALPINE-CVE-2019-15606: Including trailing white space in HTTP header values in Nodejs 10, 12, and 13 causes bypass of authorization based on header value comparisons. Affects nodejs versions < 10.19.0-r0. Fixed in 10.19.0-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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Node.js is a popular open-source JavaScript runtime built on Chrome's V8 JavaScript engine, allowing developers to build scalable network applications. It is widely used for server-side development and is known for its non-blocking, event-driven architecture. However, certain versions of Node.js are vulnerable to an authorization bypass issue caused by the inclusion of trailing white space in HTTP header values, which can lead to security risks in applications relying on header value comparisons.

Vulnerability Detail

The vulnerability, identified as CVE-2019-15606, arises from the way Node.js handles trailing white space in HTTP header values. When such values are included, they can bypass authorization checks that depend on strict header value comparisons. This can allow unauthorized access to resources, potentially leading to data breaches or other malicious activities. The vulnerability affects Node.js versions 10, 12, and 13, and has a CVSS score of 9.8, indicating a critical severity level.

How To Fix

Minimum fixed version

10.19.0-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

As a temporary workaround, developers can implement input validation to strip trailing white space from HTTP header values before processing them. This can be done using middleware in the application code. For example, in an Express.js application, you can add the following middleware:

app.use((req, res, next) => {
  for (const header in req.headers) {
    req.headers[header] = req.headers[header].trim();
  }

next();

});

Conclusion

The CVE-2019-15606 vulnerability in Node.js poses a significant risk due to its potential for unauthorized access through HTTP header manipulation. It is crucial for developers to update to the patched versions of Node.js to mitigate this risk and ensure the security of their applications. Implementing workarounds can provide temporary relief until updates are applied.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

CVE-2019-15606 is a vulnerability in Node.js that allows unauthorized access due to trailing white space in HTTP header values.

The affected versions include Node.js 10, 12, and 13.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score of this vulnerability is 9.8, indicating a critical severity level.

If immediate updates are not possible, implement input validation to strip trailing white space from HTTP header values as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

10.19.0-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