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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-03-28T00:00:00.000Z
- Modified: 2026-06-17T07:41:18.497Z
- Also known as: GHSA-4h4x-4m75-47j4
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- depath (npm): up to 1.0.6
- cool-path (npm): up to 1.1.2
- janrywang depath: 1.0.6; 1.1.2

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## 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)

## Sources

- CVE List: [CVE-2024-38985](https://www.cve.org/CVERecord?id=CVE-2024-38985), CVE Terms of Use, modified 2025-04-01
- GitHub Advisory Database: [GHSA-4h4x-4m75-47j4](https://github.com/advisories/GHSA-4h4x-4m75-47j4), CC-BY-4.0, modified 2025-03-31
- NVD: [CVE-2024-38985](https://nvd.nist.gov/vuln/detail/CVE-2024-38985), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38985 · Whole record: https://cve.day/CVE-2024-38985.json · Rebuilt by cve.day 2026-11-25T22:58:52.456Z
