7.3high
Prototype Pollution
- Severity
- 7.3high CVSS:3.1 by snyk
- Exploit likelihood
- 2.01% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-wg6g-ppvx-927h
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cached-path-relative | from unspecified before 1.1.0 | CVE List |
| cached-path-relative (npm) | before 1.1.0 | GitHub Advisory Database |
| cached-path-relative_project cached-path-relative | before 1.1.0 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| snyk | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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
GitHub Advisory Database
The package cached-path-relative before 1.1.0 is 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
NVD (es)
El paquete cached-path-relative versiones anteriores a 1.1.0, es vulnerable a una Contaminación de Prototipos por medio de la variable de caché que es establecida como {} en lugar de Object.create(null) en la función cachedPathRelative, que permite el acceso a las propiedades del prototipo padre cuando el objeto es usado para crear la ruta relativa en caché. Cuando es usada la ruta de origen como __proto__, es accedido al atributo del objeto en lugar de una ruta. **Nota:** Esta vulnerabilidad es derivada de una corrección incompleta en https://security.snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-72573
References
| https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653 | exploit, issue-tracking, patch, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246 | exploit, issue-tracking, patch, third-party-advisory, web | |
| https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760 | patch, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html | mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23518 | advisory | |
| https://github.com/ashaffer/cached-path-relative | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23518 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wg6g-ppvx-927h changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2021-23518 changed 2026-06-17 | Public domain |