Vulnerabilities in pkg:npm/mixme

PACKAGE
Advisory Identifier: GHSA-r5cq-9537-9rpf
Advisory Summary

CVE-2021-28860 is a CRITICAL (CVSS 9.1) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Mixme libraries in the npm ecosystem. The issue involves prototype pollution in mixme. Remediation is available by upgrading affected packages to version 0.5.1.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/mixme

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/mixme. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r5cq-9537-9rpf CVE-2021-28860 CRITICAL Prototype Pollution in mixme
GHSA-84p7-fh9c-6g8h - HIGH Prototype Pollution in mixme
GHSA-79jw-6wg7-r9g4 CVE-2021-29491 HIGH Use of Potentially Dangerous Function in mixme

CVE-2021-28860 at a Glance

CVE Identifier CVE-2021-28860
GHSA Identifier GHSA-r5cq-9537-9rpf
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Mixme
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.1

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:H/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 High (I:H)
Availability High (A:H)

How to Fix CVE-2021-28860

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-28860, 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-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 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

Node.js mixme 0.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).

CVE-2021-28860 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-28860?
CVE-2021-28860 is a security vulnerability in Mixme involving Prototype Pollution in mixme under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Mixme versions are affected?
Affected versions include releases prior to 0.5.1 across affected packages: mixme.
What version fixes CVE-2021-28860?
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-28860?
CVE-2021-28860 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2021-28860?
CVE-2021-28860 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-28860?
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-r5cq-9537-9rpf",
  "modified" : "2021-12-13T21:33:52Z",
  "published" : "2022-02-10T23:52:01Z",
  "aliases" : [ "CVE-2021-28860" ],
  "summary" : "Prototype Pollution in mixme",
  "details" : "Node.js mixme 0.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).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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-28860"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adaltas/node-mixme/issues/1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adaltas/node-mixme/commit/cfd5fbfc32368bcf7e06d1c5985ea60e34cd4028"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/adaltas/node-mixme"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20210618-0005"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/~david"
  }, {
    "type" : "WEB",
    "url" : "http://nodejs.com"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-19T21:34:53Z",
    "nvd_published_at" : "2021-05-03T12:15:00Z"
  }
}