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.
This PR contains the following updates:
1.2.0
->1.2.6
GitHub Vulnerability Alerts
CVE-2020-7598
Affected versions of
minimist
are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype ofObject
, causing the addition or modification of an existing property that will exist on all objects.Parsing the argument
--__proto__.y=Polluted
adds ay
property with valuePolluted
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.
CVE-2021-44906
Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file
index.js
, functionsetKey()
(lines 69-95).Release Notes
minimistjs/minimist (minimist)
### [`v1.2.6`](https://togithub.com/minimistjs/minimist/blob/HEAD/CHANGELOG.md#v126---2022-03-21) [Compare Source](https://togithub.com/minimistjs/minimist/compare/v1.2.5...v1.2.6) ##### Commits - test from prototype pollution PR [`bc8ecee`](https://togithub.com/minimistjs/minimist/commit/bc8ecee43875261f4f17eb20b1243d3ed15e70eb) - isConstructorOrProto adapted from PR [`c2b9819`](https://togithub.com/minimistjs/minimist/commit/c2b981977fa834b223b408cfb860f933c9811e4d) - security notice for additional prototype pollution issue [`ef88b93`](https://togithub.com/minimistjs/minimist/commit/ef88b9325f77b5ee643ccfc97e2ebda577e4c4e2) ### [`v1.2.5`](https://togithub.com/minimistjs/minimist/blob/HEAD/CHANGELOG.md#v125---2020-03-12) [Compare Source](https://togithub.com/minimistjs/minimist/compare/v1.2.4...v1.2.5) ### [`v1.2.4`](https://togithub.com/minimistjs/minimist/blob/HEAD/CHANGELOG.md#v124---2020-03-11) [Compare Source](https://togithub.com/minimistjs/minimist/compare/v1.2.3...v1.2.4) ##### Commits - security notice [`4cf1354`](https://togithub.com/minimistjs/minimist/commit/4cf1354839cb972e38496d35e12f806eea92c11f) - additional test for constructor prototype pollution [`1043d21`](https://togithub.com/minimistjs/minimist/commit/1043d212c3caaf871966e710f52cfdf02f9eea4b) ### [`v1.2.3`](https://togithub.com/minimistjs/minimist/blob/HEAD/CHANGELOG.md#v123---2020-03-10) [Compare Source](https://togithub.com/minimistjs/minimist/compare/v1.2.2...v1.2.3) ##### Commits - more failing proto pollution tests [`13c01a5`](https://togithub.com/minimistjs/minimist/commit/13c01a5327736903704984b7f65616b8476850cc) - even more aggressive checks for protocol pollution [`38a4d1c`](https://togithub.com/minimistjs/minimist/commit/38a4d1caead72ef99e824bb420a2528eec03d9ab) ### [`v1.2.2`](https://togithub.com/minimistjs/minimist/blob/HEAD/CHANGELOG.md#v122---2020-03-10) [Compare Source](https://togithub.com/minimistjs/minimist/compare/v1.2.1...v1.2.2) ##### Commits - failing test for protocol pollution [`0efed03`](https://togithub.com/minimistjs/minimist/commit/0efed0340ec8433638758f7ca0c77cb20a0bfbab) - cleanup [`67d3722`](https://togithub.com/minimistjs/minimist/commit/67d3722413448d00a62963d2d30c34656a92d7e2) - console.dir -> console.log [`47acf72`](https://togithub.com/minimistjs/minimist/commit/47acf72c715a630bf9ea013867f47f1dd69dfc54) - don't assign onto **proto** [`63e7ed0`](https://togithub.com/minimistjs/minimist/commit/63e7ed05aa4b1889ec2f3b196426db4500cbda94) ### [`v1.2.1`](https://togithub.com/minimistjs/minimist/blob/HEAD/CHANGELOG.md#v121---2020-03-10) [Compare Source](https://togithub.com/minimistjs/minimist/compare/v1.2.0...v1.2.1) ##### Merged - move the `opts['--']` example back where it belongs [`#63`](https://togithub.com/minimistjs/minimist/pull/63) ##### Commits - add test [`6be5dae`](https://togithub.com/minimistjs/minimist/commit/6be5dae35a32a987bcf4137fcd6c19c5200ee909) - fix bad boolean regexp [`ac3fc79`](https://togithub.com/minimistjs/minimist/commit/ac3fc796e63b95128fdbdf67ea7fad71bd59aa76)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.