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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | cached-path-relative | unspecified – < 1.1.0 | 1.1.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | 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 12 | node-cached-path-relative | 1.1.0+~1.0.0-1 | — |
| Debian 10 | node-cached-path-relative | 1.0.1-2+deb10u1 | DLA-3221-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-cached-path-relative | No fix yet | — |
| Ubuntu 26.04 LTS | node-cached-path-relative | No fix yet | — |
| Ubuntu 25.10 | node-cached-path-relative | No fix yet | — |
| Ubuntu 24.04 LTS | node-cached-path-relative | No fix yet | — |
| Ubuntu 22.04 LTS | node-cached-path-relative | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-cached-path-relative | No fix yet | — |
| Ubuntu 18.04 LTS | node-cached-path-relative | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | cached-path-relative | < 1.1.0 | 1.1.0 | GHSA-wg6g-ppvx-927h |
Advisories 1
- DLA-3221-1 node-cached-path-relative - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246
- https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760
- [debian-lts-announce] 20221204 [SECURITY] [DLA 3221-1] node-cached-path-relative security update mailing-list