[Pkg-javascript-devel] Bug#1004338: node-cached-path-relative: CVE-2021-23518 - prototype pollution

Neil Williams codehelp at debian.org
Tue Jan 25 12:12:13 GMT 2022


Source: node-cached-path-relative
Version: 1.0.2-3
Severity: important
Tags: security
X-Debbugs-Cc: codehelp at debian.org, Debian Security Team <team at security.debian.org>

Hi,

The following vulnerability was published for node-cached-path-relative.

CVE-2021-23518[0]:
| 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


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2021-23518
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23518

Please adjust the affected versions in the BTS as needed.

Note: results from incomplete fix for https://security.snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-72573

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-3-amd64 (SMP w/16 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the Pkg-javascript-devel mailing list