CVE-2021-23518

Prototype Pollution

Published Jan 21, 2022 CVSS 3.1 · 7.3 High EPSS 1.9% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3221-1 node-cached-path-relative security update
EUVD EUVD EUVD-2022-0723 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
Github GHSA Github GHSA GHSA-wg6g-ppvx-927h Prototype Pollution in cached-path-relative
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:acm:2.4::el8
Type Values Removed Values Added
CPEs cpe:/a:redhat:acm:2.4::el8
Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 6:33 PM
Reserved
Jan 8, 2021, 12:00 AM
Status
Modified
Published
Jan 21, 2022, 8:15 PM
Modified
Jun 17, 2026, 3:38 AM
Severity
Moderate
Public date
Jan 21, 2022, 12:00 AM