CVE-2021-23518
JSON

7.3high

Prototype Pollution

Severity
7.3high CVSS:3.1 by snyk
Exploit likelihood
2.01% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-wg6g-ppvx-927h

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

Affected

Product or packageVersionsReported by
cached-path-relativefrom unspecified before 1.1.0CVE List
cached-path-relative (npm)before 1.1.0GitHub Advisory Database
cached-path-relative_project cached-path-relativebefore 1.1.0NVD
debian debian_linux10.0NVD

All scores

snyk7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
GitHub7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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 Advisory Database

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

NVD (es)

El paquete cached-path-relative versiones anteriores a 1.1.0, es vulnerable a una Contaminación de Prototipos por medio de la variable de caché que es establecida como {} en lugar de Object.create(null) en la función cachedPathRelative, que permite el acceso a las propiedades del prototipo padre cuando el objeto es usado para crear la ruta relativa en caché. Cuando es usada la ruta de origen como __proto__, es accedido al atributo del objeto en lugar de una ruta. **Nota:** Esta vulnerabilidad es derivada de una corrección incompleta en https://security.snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-72573

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23518 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-wg6g-ppvx-927h changed 2025-01-14CC-BY-4.0
NVDCVE-2021-23518 changed 2026-06-17Public domain