CVE-2021-23438
JSON

5.6medium

Prototype Pollution

Severity
5.6medium CVSS:3.1 by snyk
Exploit likelihood
1.72% (higher than 78% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-p92x-r36w-9395

Description

This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.

Affected

Product or packageVersionsReported by
mpathfrom unspecified before 0.8.4CVE List
mpath (npm)before 0.8.4GitHub Advisory Database
mpath_project mpathbefore 0.8.4NVD

All scores

snyk5.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
GitHub5.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.

GitHub Advisory Database

This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.

NVD (es)

Esto afecta al paquete mpath versiones anteriores a 0.8.4. Una vulnerabilidad de confusión de tipo puede conllevar a una omisión de CVE-2018-16490. En concreto, la condición ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. Esto es debido a que el método que se ha llamado si la entrada es un array es Array.prototype.indexOf() y no String.prototype.indexOf(). Se comportan de forma diferente según el tipo de entrada

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23438 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-p92x-r36w-9395 changed 2025-01-14CC-BY-4.0
NVDCVE-2021-23438 changed 2026-06-17Public domain