CVE-2021-29491: Mixme Use Of Potentially Dangerous Function Vulnerability

HIGH
Advisory Identifier: GHSA-79jw-6wg7-r9g4
CVSS 7.1
CWE-913
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-29491
GHSA Identifier GHSA-79jw-6wg7-r9g4
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-913: Improper Control of Dynamically-Managed Code Resources
Affected Product Mixme
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability High (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.

mixme fixed: 0.5.1
npm install mixme@0.5.1
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 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

### Impact In 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). ### Patches The problem is corrected starting with version 0.5.1. ### References Issue: https://github.com/adaltas/node-mixme/issues/1 Commit: https://github.com/adaltas/node-mixme/commit/cfd5fbfc32368bcf7e06d1c5985ea60e34cd4028

CVE-2021-29491 Affected Mixme Versions

1 component(s)
Fixed Versions:
0.5.1
Product / Package Ecosystem Affected Versions Fixed Version
mixme
npm
< 0.5.1
0.5.1

References

Frequently Asked Questions

What is CVE-2021-29491?
CVE-2021-29491 is a security vulnerability in Mixme involving Use of Potentially Dangerous Function in mixme under CWE-913: Improper Control of Dynamically-Managed Code Resources.
Which Mixme versions are affected?
Affected versions include releases prior to 0.5.1 across affected packages: mixme.
What version fixes CVE-2021-29491?
Upgrading to 0.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mixme affected?
Yes, mixme is affected in releases prior to 0.5.1. Upgrade your dependency to 0.5.1 or later.
What is the CVSS score of CVE-2021-29491?
CVE-2021-29491 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2021-29491?
CVE-2021-29491 is classified under CWE-913: Improper Control of Dynamically-Managed Code Resources (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.).
How can I check npm dependencies for CVE-2021-29491?
Run the dependency tree command: 'npm ls mixme'. 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-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"
  }
}