CVE-2021-29491: Mixme Use Of Potentially Dangerous Function Vulnerability
HIGHCVE-2021-29491 is a HIGH (CVSS 7.1) use of potentially dangerous function vulnerability (CWE-913: Improper Control of Dynamically-Managed Code Resources) affecting Mixme libraries in the npm ecosystem. The issue involves use of potentially dangerous function in mixme. Remediation is available by upgrading affected packages to version 0.5.1.
CVE-2021-29491 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H).
How to Fix CVE-2021-29491
To remediate this vulnerability, upgrade all affected Mixme dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install mixme@0.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mixme
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-29491, inspect your project dependencies using npm:
npm ls mixme
Analyze the terminal output to locate any version of Mixme in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.1), your application is affected.
Note: The npm ls mixme 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-913: Improper Control of Dynamically-Managed Code Resources, where the product does not properly restrict reading from or writing to dynamically-managed code resources such as variables, objects, classes, attributes, functions, or executable instructions or statements. In Mixme, 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
CVE-2021-29491 Affected Mixme Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mixme
|
npm |
< 0.5.1
|
0.5.1
|
References
Frequently Asked Questions
What is CVE-2021-29491?
Which Mixme versions are affected?
What version fixes CVE-2021-29491?
Is mixme affected?
What is the CVSS score of CVE-2021-29491?
What CWE is associated with CVE-2021-29491?
How can I check npm dependencies for CVE-2021-29491?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-79jw-6wg7-r9g4",
"modified" : "2021-05-07T21:13:59Z",
"published" : "2021-05-06T15:45:39Z",
"aliases" : [ "CVE-2021-29491" ],
"summary" : "Use of Potentially Dangerous Function in mixme",
"details" : "### Impact\n\nIn Node.js mixme v0.5.0, an attacker can add or alter properties of an object via 'proto' through the mutate() and merge() functions. The polluted attribute will be directly assigned to every object in the program. This will put the availability of the program at risk causing a potential denial of service (DoS).\n\n### Patches\nThe problem is corrected starting with version 0.5.1.\n\n### References\nIssue: https://github.com/adaltas/node-mixme/issues/1\nCommit: https://github.com/adaltas/node-mixme/commit/cfd5fbfc32368bcf7e06d1c5985ea60e34cd4028\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mixme"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/adaltas/node-mixme/security/advisories/GHSA-79jw-6wg7-r9g4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-29491"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20210622-0002"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-913" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-05T18:39:38Z",
"nvd_published_at" : "2021-05-06T13:15:00Z"
}
}