TLS Session Reuse Vulnerability in Node.js Package - CVE-2020-8172

nodejs Updated 02 Oct 2025

Summary

08/06/2020
N/A
Yes i
High
7.4

UBUNTU-CVE-2020-8172: TLS session reuse can lead to host certificate verification bypass in node version < 12.18.0 and < 14.4.0. Affects nodejs versions < 12.22.9~dfsg-1ubuntu3. Fixed in 12.22.9~dfsg-1ubuntu3. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Node.js is a popular open-source JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to build scalable network applications using an event-driven, non-blocking I/O model. The package in question, nodejs, is widely used for server-side applications and is integral to many modern web services. However, a vulnerability has been identified that affects versions prior to 12.22.9~dfsg-1ubuntu3, which could lead to serious security issues.

Vulnerability Detail

The vulnerability, identified as CVE-2020-8172, arises from improper handling of TLS session reuse. This flaw can allow an attacker to bypass host certificate verification, potentially leading to man-in-the-middle attacks. The issue affects Node.js versions below 12.18.0 and 14.4.0, exposing applications to risks where secure communications could be compromised.

How To Fix

Minimum fixed version

12.22.9~dfsg-1ubuntu3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade nodejs

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

Workaround

As a temporary workaround, consider disabling TLS session reuse in your application configuration until the package can be updated. This can be done by setting the appropriate options in your TLS settings, though this may impact performance.

Conclusion

CVE-2020-8172 presents a significant security risk for applications using vulnerable versions of Node.js. It is crucial to update to the patched version to mitigate potential attacks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

CVE-2020-8172 is a vulnerability in Node.js that allows for host certificate verification bypass due to improper handling of TLS session reuse.

Node.js versions below 12.18.0 and 14.4.0 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of CVE-2020-8172 is 7.4, indicating a high severity level.

If immediate updates are not possible, consider implementing workarounds such as disabling TLS session reuse in your application.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

12.22.9~dfsg-1ubuntu3

This is the first release that contains the fix.

sudo apt-get install --only-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