UBUNTU-CVE-2021-23518

Source
https://ubuntu.com/security/CVE-2021-23518
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23518.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-23518
Related
Published
2022-01-21T20:15:00Z
Modified
2024-10-15T14:08:02Z
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

Ubuntu:Pro:18.04:LTS / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/ubuntu/node-cached-path-relative?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.1-1

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:20.04:LTS / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/ubuntu/node-cached-path-relative?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.2-1

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:22.04:LTS / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/ubuntu/node-cached-path-relative?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.2-1
1.0.2-2
1.0.2-3
1.1.0+~1.0.0-1

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:24.10 / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/ubuntu/node-cached-path-relative?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.1.0+~1.0.0-3

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:24.04:LTS / node-cached-path-relative

Package

Name
node-cached-path-relative
Purl
pkg:deb/ubuntu/node-cached-path-relative?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.1.0+~1.0.0-3

Ecosystem specific

{
    "ubuntu_priority": "low"
}