mariocasciaro/object-path · Security
Prototype Pollution in object-path
- GHSA ID
- GHSA-v39p-96qg-c8rf
- CVE ID
- CVE-2021-23434
- Severity
- medium
- Published
- Updated
- CVSS
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v3
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Description
This affects the package object-path before 0.11.6. A type confusion vulnerability can lead to a bypass of CVE-2020-15256 when the path components used in the path parameter are arrays. In particular, the condition currentPath === '__proto__' returns false if currentPath is ['__proto__']. This is because the === operator returns always false when the type of the operands is different.
CWEs
- CWE-843 · Access of Resource Using Incompatible Type ('Type Confusion')
- CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23434 ↗
- https://github.com/mariocasciaro/object-path/commit/7bdf4abefd102d16c163d633e8994ef154cab9eb ↗
- https://github.com/mariocasciaro/object-path#0116 ↗
- https://snyk.io/vuln/SNYK-JS-OBJECTPATH-1569453 ↗
- https://github.com/mariocasciaro/object-path%230116 ↗
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1570423 ↗
- https://lists.debian.org/debian-lts-announce/2023/01/msg00031.html ↗
- https://github.com/advisories/GHSA-v39p-96qg-c8rf ↗