Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. cool-path
  4. ›
  5. CVE-2024-38985

CVE-2024-38985: depath and cool-path vulnerable to Prototype Pollution via `set()` Method

March 28, 2025 (updated October 31, 2025)

janryWang products depath v1.0.6 and cool-path v1.1.2 were discovered to contain a prototype pollution via the set() method at setIn (lib/index.js:90). This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties.

References

  • gist.github.com/mestrtee/32c0a48023036e51918f6a098f21953d
  • github.com/advisories/GHSA-4h4x-4m75-47j4
  • github.com/janryWang/depath
  • github.com/janryWang/depath/issues/11
  • nvd.nist.gov/vuln/detail/CVE-2024-38985

Code Behaviors & Features

Detect and mitigate CVE-2024-38985 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.1.2

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/cool-path/CVE-2024-38985.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:22 +0000.