GitHub Advisoryadvisory · npm
GHSA-v39p-96qg-c8rf Prototype Pollution in object-path
MEDIUM
Official page ↗
- Aliases
- CVE-2021-23434
- Ecosystem
- npm
- Packages
- object-path
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-1321, CWE-843
- Reviewed
- 2021-08-30
Affected packages
• npm object-path: < 0.11.6 → fixed in 0.11.6
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.
Related
Alias · CVE (1)
- CVE-2021-23434 This affects the package object-path before 0.11.6. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23434 advisory
- https://github.com/mariocasciaro/object-path/commit/7bdf4abefd102d16c163d633e8994ef154cab9eb web
- https://github.com/mariocasciaro/object-path package
- https://github.com/mariocasciaro/object-path#0116 web
- https://github.com/mariocasciaro/object-path%230116 web
- https://lists.debian.org/debian-lts-announce/2023/01/msg00031.html web
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1570423 web
- https://snyk.io/vuln/SNYK-JS-OBJECTPATH-1569453 web