{"id":"CVE-2021-23460","aliases":["CVE-2021-23460","GHSA-2m53-83f3-562j"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution","summary":"The package min-dash before 3.8.1 are vulnerable to Prototype Pollution via the set method due to missing enforcement of key types.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package min-dash before 3.8.1 are vulnerable to Prototype Pollution via the set method due to missing enforcement of key types.","source":"cvelist"},{"lang":"en","text":"### 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>=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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete min-dash versiones anteriores a 3.8.1 es vulnerable a una Contaminación de Prototipos por el método set debido a una falta de aplicación de los tipos de clave","source":"nvd"}],"published":"2022-01-21T20:05:13.230Z","modified":"2026-06-17T03:38:47.487Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"3.8.1","status":"affected"}],"product":"min-dash","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.8.1"}],"ecosystem":"npm","package":"min-dash","purl":"pkg:npm/min-dash","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.8.1"}],"ecosystem":"Maven","package":"org.webjars.npm:min-dash","purl":"pkg:maven/org.webjars.npm/min-dash","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.8.1"}],"vendor":"camunda","product":"min-dash","cpe":"cpe:2.3:a:camunda:min-dash:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MINDASH-2340605","tags":["exploit","mitigation","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2342127","tags":["exploit","mitigation","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bpmn-io/min-dash/blob/c4d579c0eb2ed0739592111c3906b198921d3f52/lib/object.js%23L32","tags":["broken-link","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bpmn-io/min-dash/pull/21","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bpmn-io/min-dash/pull/21/commits/5ab05cbc4fd8d5eafb7db540c491ed0906b9d320","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bpmn-io/min-dash/security/advisories/GHSA-2m53-83f3-562j","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23460","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bpmn-io/min-dash/commit/2c6689e2aa29f4b66a4874a2f3003431e9db48d1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/bpmn-io/min-dash","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/bpmn-io/min-dash/blob/c4d579c0eb2ed0739592111c3906b198921d3f52/lib/object.js#L32","tags":["web"],"sources":["ghsa"]}],"credits":["P.Adithya Srinivas","Masudul Hasan Masud Bhuiyan","Cristian-Alexandru Staicu"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23460","url":"https://www.cve.org/CVERecord?id=CVE-2021-23460","licence":"CVE Terms of Use","modified":"2024-09-16T17:15:12.528Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2m53-83f3-562j","url":"https://github.com/advisories/GHSA-2m53-83f3-562j","licence":"CC-BY-4.0","modified":"2025-07-18T20:12:18.479Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23460","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23460","licence":"Public domain","modified":"2026-06-17T03:38:47.487Z"}],"updatedAt":"2026-11-25T22:58:06.617Z","epss":{"score":0.02262,"percentile":0.83491,"date":"2026-12-01T12:00:22.000Z"}}