CVE-2021-23460
JSON

7.5high

Prototype Pollution

Severity
7.5high CVSS:3.1 by snyk
Exploit likelihood
2.26% (higher than 83% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-2m53-83f3-562j

Description

The package min-dash before 3.8.1 are vulnerable to Prototype Pollution via the set method due to missing enforcement of key types.

Affected

Product or packageVersionsReported by
min-dashfrom unspecified before 3.8.1CVE List
min-dash (npm)before 3.8.1GitHub Advisory Database
org.webjars.npm:min-dash (Maven)before 3.8.1GitHub Advisory Database
camunda min-dashbefore 3.8.1NVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

The package min-dash before 3.8.1 are vulnerable to Prototype Pollution via the set method due to missing enforcement of key types.

GitHub Advisory Database
Impact

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);
Patches

min-dash>=3.8.1 fix the issue.

Workarounds

No workarounds exist for the issue.

References

Closed via https://github.com/bpmn-io/min-dash/pull/21.

Credits

Credits to Cristian-Alexandru STAICU who found the vulnerability and to Idan Digmi from the Snyk Security Team who reported the vulnerability to us, responsibly.

NVD (es)

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

References

https://snyk.io/vuln/SNYK-JS-MINDASH-2340605exploit, mitigation, patch, third-party-advisory, web
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2342127exploit, mitigation, patch, third-party-advisory, web
https://github.com/bpmn-io/min-dash/blob/c4d579c0eb2ed0739592111c3906b198921d3f52/lib/object.js%23L32broken-link, third-party-advisory
https://github.com/bpmn-io/min-dash/pull/21patch, third-party-advisory, web
https://github.com/bpmn-io/min-dash/pull/21/commits/5ab05cbc4fd8d5eafb7db540c491ed0906b9d320patch, third-party-advisory
https://github.com/bpmn-io/min-dash/security/advisories/GHSA-2m53-83f3-562jweb
https://nvd.nist.gov/vuln/detail/CVE-2021-23460advisory
https://github.com/bpmn-io/min-dash/commit/2c6689e2aa29f4b66a4874a2f3003431e9db48d1web
https://github.com/bpmn-io/min-dashpackage
https://github.com/bpmn-io/min-dash/blob/c4d579c0eb2ed0739592111c3906b198921d3f52/lib/object.js#L32web

Sources

SourceRecordLicence
CVE ListCVE-2021-23460 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-2m53-83f3-562j changed 2025-07-18CC-BY-4.0
NVDCVE-2021-23460 changed 2026-06-17Public domain