CVE-2020-7598: Input Validation
A flaw was found in nodejs-minimist, where it was tricked into adding or modifying properties of the Object.prototype using a "constructor" or "proto" payload. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Other sources
Affected versions of minimist are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of Object, causing the addition or modification of an existing property that will exist on all objects. Parsing the argument --proto.y=Polluted adds a y property with value Polluted to all objects. The argument --proto=Polluted raises and uncaught error and crashes the application. This is exploitable if attackers have control over the arguments being passed to minimist.
Recommendation
Upgrade to versions 0.2.1, 1.2.3 or later.
— GitHub
minimist before 1.2.2 could be tricked into adding or modifying properties of Object.prototype using a "constructor" or "proto" payload.
minimist could provide weaker than expected security, caused by a prototype pollution flaw. By sending a specially crafted request, a remote attacker could exploit this vulnerability to add or modify properties of Object.prototype.
— IBM
Affected Software
Remediation
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2020-7598?
CVE-2020-7598 is a vulnerability in minimist before version 1.2.2 that can be tricked into adding or modifying properties of Object.prototype.
What is the impact of CVE-2020-7598?
The highest threat from CVE-2020-7598 is to confidentiality, integrity, as well as system availability.
How can I fix CVE-2020-7598?
To fix CVE-2020-7598, update to minimist version 1.2.3.
Where can I find more information about CVE-2020-7598?
You can find more information about CVE-2020-7598 at the following references: [Reference 1](https://snyk.io/vuln/SNYK-JS-MINIMIST-559764), [Reference 2](https://github.com/substack/minimist/commit/63e7ed05aa4b1889ec2f3b196426db4500cbda94), [Reference 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1813346).
What is the severity of CVE-2020-7598?
The severity of CVE-2020-7598 is medium with a CVSS score of 5.6.