All CVEs / Cached-path-relative Project
CVE-2021-23518Cached-path-relative Project Cached-path-relative
Critical 9.8 No auth needed
Follow: this CVE · Cached-path-relative Project · Cached-path-relative Project Cached-path-relative We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Jan 21, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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
What to do
- Apply the vendor's security update for Cached-path-relative.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | cached-path-relative |
< 1.1.0 |
1.1.0 |
npm install cached-path-relative@1.1.0 |
Per OSV / GitHub Advisories (GHSA-wg6g-ppvx-927h). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| cached-path-relative_project | cached-path-relative | < 1.1.0 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- snyk.io Exploit Issue Tracking Patch
- snyk.io Exploit Issue Tracking Patch