Denial of Service Vulnerability in Node.js

nodejs Updated 02 Oct 2025

Summary

19/11/2020
N/A
Yes i
High
7.5

CVE-2020-8277: A Node.js application that allows an attacker to trigger a DNS request for a host of their choice could trigger a Denial of Service in versions < 15.2.1, < 14.15.1, and < 12.19.1 by getting the application to resolve a D... Affects nodejs across 3 version ranges.

< 12.20.1-r0 >= 63d1e08e64e7e09408eb63cd8dd7c65ad766f277, < f95d7152cb9f56b3d6ca8e107a01c199b235c0df < 077a587dccbe2f0d8a1987fbd3525333705c2249

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 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 JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to build scalable and high-performance applications. However, a vulnerability has been discovered in Node.js that could lead to a Denial of Service (DoS) attack.

Vulnerability Detail

The vulnerability, identified as CVE-2020-8277, allows an attacker to trigger a DNS request for a host of their choice, resulting in a DoS attack. This vulnerability affects Node.js versions prior to 15.2.1, 14.15.1, and 12.19.1. By exploiting this vulnerability, an attacker can cause the application to resolve a DNS record with a larger number of responses, leading to a DoS condition. The issue has been fixed in the mentioned versions.

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 specific workaround mentioned for this vulnerability. It is advised to update to the fixed versions as soon as possible.

Conclusion

The Denial of Service vulnerability in Node.js (CVE-2020-8277) can be exploited by an attacker to trigger a DoS attack. It is crucial to update to the fixed versions (15.2.1, 14.15.1, or 12.19.1) to mitigate the risk of this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

This vulnerability can be exploited by an attacker to trigger a DoS attack, causing the affected Node.js application to become unresponsive or crash.

Versions of Node.js prior to 15.2.1, 14.15.1, and 12.19.1 are affected by this vulnerability.

Yes, the vulnerability has been fixed in Node.js versions 15.2.1, 14.15.1, and 12.19.1.

No specific workarounds have been mentioned for this vulnerability. It is recommended to update to the fixed versions.

You can find more information about this vulnerability in the CVE-2020-8277 JSON file available at the provided source link.

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