CVE-2021-23438

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-23438
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-23438.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-23438
Aliases
Related
  • SNYK-JAVA-ORGWEBJARSNPM-1579548
  • SNYK-JS-MPATH-1577289
Published
2021-09-01T19:15:07Z
Modified
2025-01-08T10:42:05.906784Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/aheckmann/mpath

Affected ranges

Type
GIT
Repo
https://github.com/aheckmann/mpath
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
GIT
Repo
https://github.com/mongoosejs/mpath
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

0.*

0.0.1
0.1.0
0.1.1
0.2.0
0.2.1
0.3.0
0.4.1
0.5.0
0.5.1
0.5.2
0.6.0
0.7.0
0.8.0
0.8.1
0.8.2
0.8.3