CVE-2024-38985
CRITICAL 9.8CVSS 3.1depath and cool-path vulnerable to Prototype Pollution via `set()` Method
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.
- Published
- 28 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-1321
- Also known as
- GHSA-4h4x-4m75-47j4
- Sources
- NVDJSONOSV GHSA-4h4x-4m75-47j4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:P | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | janrywang | depathcpe:2.3:a:janrywang:depath:1.0.6:*:*:*:*:*:*:* |
= 1.0.6 | |
| NVD | janrywang | depathcpe:2.3:a:janrywang:depath:1.1.2:*:*:*:*:*:*:* |
= 1.1.2 | |
| OSV | npm | depath | <= 1.0.6 | |
| OSV | npm | cool-path | <= 1.1.2 |
References
- https://gist.github.com/mestrtee/32c0a48023036e51918f6a098f21953d · Exploit, WEB
- https://github.com/janryWang/depath/issues/11 · Exploit, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-38985 · ADVISORY
- https://github.com/janryWang/depath · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 28 Mar 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 28 Mar 2025)