9.8

CVE-2021-23518: cached-path-relative_project cached-path-relative Prototype Pollution

CVSS: 9.8v3.1CriticalModified
AliasesUBUNTU-CVE-2021-23518DEBIAN-CVE-2021-23518GHSA-wg6g-ppvx-927h
Published 21-01-2022Last modified 16-09-2024

Vulnerability summary

CVE-2021-23518 is a critical (CVSS 9.8) Prototype Pollution vulnerability in cached-path-relative_project cached-path-relative. EPSS estimates a 1.94% chance of exploitation in the next 30 days, higher than 79.8% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
1.94%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2reference

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 21-01-2022
    PublishedVulnerability first disclosed.
  2. 16-09-2024
    Last modifiedVulnerability information updated.

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

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.94%

Chance of exploitation in the next 30 days

Percentile

80%

Versus all other CVEs

30-day change

0.00 pp

From 1.94% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.94%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Debian2 products
  • node-cached-path-relative< 1.1.0+~1.0.0-1
  • debian_linuxEOL10.0
Cached-path-relative_project1 product
Npm1 product
  • cached-path-relative< 1.1.0
Ubuntu1 product
  • node-cached-path-relativeAll versions (No fix recorded)

4 vendors · 5 products

References

9 links