CVE-2021-23518
cached-path-relative: Prototype Pollution via the cache variable
Sévérité par source
Le label propre à Trivy est CRITICAL. Critique selon NVD. Plus basse selon GHSA (élevée), Red Hat (moyenne).
Description
The package cached-path-relative before 1.1.0 are vulnerable to Prototype Pollution via the cache variable that is set as {} instead of Object.create(null) in the cachedPathRelative function, which allows access to the parent prototype properties when the object is used to create the cached relative path. When using the origin path as __proto__, the attribute of the object is accessed instead of a path. **Note:** This vulnerability derives from an incomplete fix in https://security.snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-72573
Paquets affectés et versions corrigées
| Source | Paquet | Corrigé en |
|---|---|---|
| debian 10 | node-cached-path-relative | 1.0.1-2+deb10u1 |
| debian 11 | node-cached-path-relative | 1.0.2-1+deb11u1 |
| debian 12 | node-cached-path-relative | 1.1.0+~1.0.0-1 |
| debian 13 | node-cached-path-relative | 1.1.0+~1.0.0-1 |
| debian 14 | node-cached-path-relative | 1.1.0+~1.0.0-1 |
| echo | node-cached-path-relative | 1.1.0+~1.0.0-1 |
| npm::GitHub Security Advisory npm | cached-path-relative | 1.1.0 |
Références
- https://access.redhat.com/security/cve/CVE-2021-23518
- https://github.com/ashaffer/cached-path-relative
- https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760
- https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-23518
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246
- https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653
- https://www.cve.org/CVERecord?id=CVE-2021-23518