PT-2022-9406

CVE-2021-23518

·

Published

2022-01-21

·

Updated

2023-02-03

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions cached-path-relative versions prior to 1.1.0
Description The issue allows for Prototype Pollution via the cache variable set as {} instead of Object.create(null) in the cachedPathRelative function. This enables access to parent prototype properties when the object is used to create the cached relative path. Specifically, when the origin path is set as proto, the attribute of the object is accessed instead of a path.
Recommendations For versions prior to 1.1.0, update to version 1.1.0 or later to resolve the issue. As a temporary workaround, consider modifying the cachedPathRelative function to use Object.create(null) instead of {} for the cache variable to prevent Prototype Pollution.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-WG6G-PPVX-927H
DLA-3221-1
SNYK-JAVA-ORGWEBJARSNPM-2348246
SNYK-JS-CACHEDPATHRELATIVE-2342653
Found an issue in the description? Have something to add? Feel free to write us 👾