CVE-2021-23518 – cached-path-relative
Package
Manager: npm
Name: cached-path-relative
Vulnerable Version: >=0 <1.1.0
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS: 0.0013 pctl0.33231
Details
Prototype Pollution in cached-path-relative The package cached-path-relative before 1.1.0 is 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
Metadata
Created: 2022-01-27T14:27:53Z
Modified: 2022-01-27T14:26:40Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-wg6g-ppvx-927h/GHSA-wg6g-ppvx-927h.json
CWE IDs: ["CWE-1321"]
Alternative ID: GHSA-wg6g-ppvx-927h
Finding: F390
Auto approve: 1