node-cached-path-relative: CVE-2021-23518 - prototype pollution

Related Vulnerabilities: CVE-2021-23518  

Debian Bug report logs - #1004338
node-cached-path-relative: CVE-2021-23518 - prototype pollution

version graph

Reported by: Neil Williams <codehelp@debian.org>

Date: Tue, 25 Jan 2022 12:15:01 UTC

Severity: important

Tags: security

Found in version node-cached-path-relative/1.0.2-3

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, codehelp@debian.org, team@security.debian.org, Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>:
Bug#1004338; Package src:node-cached-path-relative. (Tue, 25 Jan 2022 12:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Neil Williams <codehelp@debian.org>:
New Bug report received and forwarded. Copy sent to codehelp@debian.org, team@security.debian.org, Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>. (Tue, 25 Jan 2022 12:15:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Neil Williams <codehelp@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: node-cached-path-relative: CVE-2021-23518 - prototype pollution
Date: Tue, 25 Jan 2022 12:12:13 +0000
Source: node-cached-path-relative
Version: 1.0.2-3
Severity: important
Tags: security
X-Debbugs-Cc: codehelp@debian.org, Debian Security Team <team@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



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jan 25 16:17:18 2022; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.