9.8

CVE-2021-23518: Prototype Pollution

Modified
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) vulnerability in cached-path-relative_project cached-path-relative. EPSS estimates a 2.01% chance of exploitation in the next 30 days, higher than 81.5% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
2.01%
0%100%
Low · +0.06 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2reference

Advisory lineage

Upstream 0 · Downstream 2 · Related 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

2.01%

Chance of exploitation in the next 30 days

Percentile

82%

Versus all other CVEs

30-day change

Increase +0.06 pp

From 1.94% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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) | < 1.0.1-1ubuntu0.1~esm1 | < 1.0.2-1ubuntu0.1~esm1

4 vendors · 5 products

References

10 links