CVE-2021-23518
published high CVSS 3.1 · 7.3Prototype Pollution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | cached-path-relativeunspecified to < 1.1.0 | Affected | Not stated | snyk |
| Debian | buster | node-cached-path-relative | Advisory build | 1.0.1-2+deb10u1 | DLA-3221-1 |
| Ubuntu | bionic | node-cached-path-relative | Advisory build | 1.0.1-1ubuntu0.1~esm1 | USN-9326-1 |
| Ubuntu | focal | node-cached-path-relative | Advisory build | 1.0.2-1ubuntu0.1~esm1 | USN-9326-1 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | cached-path-relative | unspecified to < 1.1.0 (affected · custom) | snyk · cna |
Weaknesses
1- Prototype Pollution
References
4- https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760
- [debian-lts-announce] 20221204 [SECURITY] [DLA 3221-1] node-cached-path-relative security update https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246
- https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653
Provider assertions
2snyk · cna
Prototype Pollution
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 55193e6750f6d6e948a253dd41480d802cfb1ffcd57afb7df71e669a180f762e
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record