CVE-2021-23460: Min dash Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-2m53-83f3-562j
CVSS 7.5
CWE-1321
Published
Advisory Summary

CVE-2021-23460 is a HIGH (CVSS 7.5) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Min dash libraries in the npm ecosystem. The issue involves prototype pollution in min-dash. Remediation is available by upgrading affected packages to version 3.8.1.

CVE-2021-23460 at a Glance

CVE Identifier CVE-2021-23460
GHSA Identifier GHSA-2m53-83f3-562j
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Min dash
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2021-23460

To remediate this vulnerability, upgrade all affected Min dash dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

min-dash fixed: 3.8.1
npm install min-dash@3.8.1
org.webjars.npm:min-dash fixed: 3.8.1
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>min-dash</artifactId>
    <version>3.8.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls min-dash

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2021-23460, inspect your project dependencies using npm:

npm ls min-dash

Analyze the terminal output to locate any version of Min dash in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.1), your application is affected.

Note: The npm ls min-dash command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Min dash, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The `set` method is vulnerable to prototype pollution with specially crafted inputs. ```javascript // 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.

CVE-2021-23460 Affected Min dash Versions

2 component(s)
Fixed Versions:
3.8.1
Product / Package Ecosystem Affected Versions Fixed Version
min-dash
npm
< 3.8.1
3.8.1
org.webjars.npm:min-dash
Maven
< 3.8.1
3.8.1

References

Frequently Asked Questions

What is CVE-2021-23460?
CVE-2021-23460 is a security vulnerability in Min dash involving Prototype pollution in min-dash under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Min dash versions are affected?
Affected versions include releases prior to 3.8.1 across affected packages: min-dash, org.webjars.npm:min-dash.
What version fixes CVE-2021-23460?
Upgrading to 3.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is min-dash affected?
Yes, min-dash is affected in releases prior to 3.8.1. Upgrade your dependency to 3.8.1 or later.
What is the CVSS score of CVE-2021-23460?
CVE-2021-23460 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2021-23460?
CVE-2021-23460 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2021-23460?
Run the dependency tree command: 'npm ls min-dash'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2m53-83f3-562j",
  "modified" : "2025-07-18T19:59:29Z",
  "published" : "2022-02-01T00:44:35Z",
  "aliases" : [ "CVE-2021-23460" ],
  "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>=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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "min-dash"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.8.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:min-dash"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.8.1"
      } ]
    } ]
  } ],
  "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-27T23:11:40Z",
    "nvd_published_at" : null
  }
}