Critical Vulnerability in node-yargs-parser: Object.prototype Manipulation Risk

node-yargs-parser Updated 02 Oct 2025

Summary

16/03/2020
N/A
No i
Medium
5.3

UBUNTU-CVE-2020-7608: yargs-parser could be tricked into adding or modifying properties of Object.prototype using a "proto" payload. Affects node-yargs-parser versions 4.1.0-1 – 8.0.0-1. No fix is published. 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-yargs-parser is a popular library used in Node.js applications for parsing command-line arguments. It provides a simple API for handling user input and is widely utilized in various projects. However, a vulnerability has been identified that allows malicious actors to manipulate the Object.prototype, potentially leading to severe security issues.

Vulnerability Detail

The vulnerability, identified as CVE-2020-7608, allows yargs-parser to be tricked into adding or modifying properties of Object.prototype using a specially crafted 'proto' payload. This can lead to unexpected behavior in applications that rely on this library, as it may allow attackers to alter the functionality of the application, potentially leading to data leakage or unauthorized access.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can sanitize inputs to ensure that no 'proto' payloads are processed by the yargs-parser. This can be done by implementing input validation checks before passing arguments to the parser.

Conclusion

The vulnerability in node-yargs-parser poses a significant risk to applications that utilize this library. It is crucial to update to the patched version and implement necessary security measures to mitigate potential threats.

See every vulnerability recorded for node-yargs-parser →

Share this vulnerability

FAQ

CVE-2020-7608 is a vulnerability in the node-yargs-parser package that allows manipulation of Object.prototype through crafted payloads.

If your application uses node-yargs-parser, an attacker could exploit this vulnerability to alter the behavior of your application, potentially leading to security breaches.

Yes, a patched version of node-yargs-parser is available. It is recommended to update to version 8.0.1-1 or later.

Update the node-yargs-parser package to the latest patched version and implement input validation to prevent exploitation of this vulnerability.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file. Visit Vulert Scanner to check if your application is affected.

Related vulnerabilities

Recent vulnerabilities recorded for node-yargs-parser.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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