Prototype pollution in cached-path-relative
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | cached-path-relative | before 1.1.0 | 1.1.0 | Patch available | CNA |
| — | cached-path-relative (npm) | before 1.1.0 | 1.1.0 | Patch available | GHSA-wg6g-ppvx-927h |
- cached-path-relative Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available CNA
- cached-path-relative (npm) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-wg6g-ppvx-927h
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:cached-path-relative_project:cached-path-relative:*:*:*:*:*:node.js:*:* | before 1.1.0 | Vulnerable | Cached-path-relative Project |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:cached-path-relative_project:cached-path-relative:*:*:*:*:*:node.js:*:* Versions before 1.1.0 Vulnerable ·Cached-path-relative Project
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · CNA cached-path-relative Fixed in 1.1.0
- Fix · GHSA-wg6g-ppvx-927h cached-path-relative (npm) Fixed in 1.1.0 Advisory →
Red Hat 1 advisory
- RHSA-2022:1476 Released 2022-04-21 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.4.3 security updates and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23518
- 2026-10-03 Alias added: GHSA-wg6g-ppvx-927h
References
Patch 1
Advisory 2
Sources
- CVE-2021-23518 · CVE Program
- CVE-2021-23518 · NVD
- FIRST EPSS
- GHSA-wg6g-ppvx-927h · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23518 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences