CVE-2021-23518

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-23518
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-23518.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-23518
Aliases
Related
Published
2022-01-21T20:15:07Z
Modified
2024-10-12T06:28:45.107732Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Debian:11 / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/debian/node-cached-path-relative?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.2-1+deb11u1

Affected versions

1.*

1.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/debian/node-cached-path-relative?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.0+~1.0.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/debian/node-cached-path-relative?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.0+~1.0.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/ashaffer/cached-path-relative

Affected ranges

Type
GIT
Repo
https://github.com/ashaffer/cached-path-relative
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed