CVE-2021-23518 Prototype Pollution
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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
Upgrade path
13 packages: 5 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-cached-path-relative(Ubuntu 18.04) | = 1.0.1-1; All versions | No fix listed | No fix yet |
| ubuntu/node-cached-path-relative(Ubuntu 20.04) | = 1.0.2-1; All versions | No fix listed | No fix yet |
| ubuntu/node-cached-path-relative(Ubuntu 22.04) | = 1.0.2-1; = 1.0.2-2; = 1.0.2-3; = 1.1.0+~1.0.0-1 +1 more | No fix listed | No fix yet |
| ubuntu/node-cached-path-relative(Ubuntu 24.04) | = 1.1.0+~1.0.0-3; All versions | No fix listed | No fix yet |
| ubuntu/node-cached-path-relative(Ubuntu 25.10) | = 1.1.0+~1.0.0-3; All versions | No fix listed | No fix yet |
| ubuntu/node-cached-path-relative(Ubuntu 26.04) | = 1.1.0+~1.0.0-3; = 1.1.0+~1.0.2-1; All versions | No fix listed | No fix yet |
| ubuntu/node-cached-path-relative(Ubuntu 26.10) | = 1.1.0+~1.0.2-1; All versions | No fix listed | No fix yet |
| cached-path-relative project cached-path-relative | < 1.1.0 | 1.1.0 | Fixed |
| debian/node-cached-path-relative(Debian 12) | < 1.1.0+~1.0.0-1 | 1.1.0+~1.0.0-1 | Fixed |
| debian/node-cached-path-relative(Debian 13) | < 1.1.0+~1.0.0-1 | 1.1.0+~1.0.0-1 | Fixed |
| debian/node-cached-path-relative(Debian 14) | < 1.1.0+~1.0.0-1 | 1.1.0+~1.0.0-1 | Fixed |
| npm cached-path-relative(npm) | < 1.1.0 | 1.1.0 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm cached-path-relative(npm) | < 1.1.0 | 1.1.0 |
| debian/node-cached-path-relative(Debian:12) | < 1.1.0+~1.0.0-1 | 1.1.0+~1.0.0-1 |
| debian/node-cached-path-relative(Debian:13) | < 1.1.0+~1.0.0-1 | 1.1.0+~1.0.0-1 |
| debian/node-cached-path-relative(Debian:14) | < 1.1.0+~1.0.0-1 | 1.1.0+~1.0.0-1 |
| ubuntu/node-cached-path-relative(Ubuntu:22.04) | All versions | No fix listed |
| cached-path-relative project cached-path-relative | < 1.1.0 | 1.1.0 |
| debian linux | = 10.0 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:18.04) | = 1.0.1-1 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:20.04) | = 1.0.2-1 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:22.04) | = 1.0.2-1 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:22.04) | = 1.0.2-2 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:22.04) | = 1.0.2-3 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:22.04) | = 1.1.0+~1.0.0-1 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:24.04) | = 1.1.0+~1.0.0-3 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:25.10) | = 1.1.0+~1.0.0-3 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:26.10) | = 1.1.0+~1.0.2-1 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:26.04) | = 1.1.0+~1.0.0-3 | No fix listed |
| ubuntu/node-cached-path-relative(Ubuntu:26.04) | = 1.1.0+~1.0.2-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- snyk.io exploit issue-tracking patch third-party-advisory
- [debian-lts-announce] 20221204 [SECURITY] [DLA 3221-1] node-cached-path-relative security update mailing-list third-party-advisory
- snyk.io exploit issue-tracking patch third-party-advisory
- github.com
- Debian Security Tracker CVE-2021-23518 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com product