# CVE-2020-8298: Command injection in fs-path

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `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): 12.3%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-03-04T19:09:22.000Z
- Modified: 2026-06-17T03:26:14.757Z
- Also known as: GHSA-8mrf-64fw-2x75
- Weaknesses: CWE-77
- Assigned by: hackerone

## Description

fs-path node module before 0.0.25 is vulnerable to command injection by way of user-supplied inputs via the `copy`, `copySync`, `remove`, and `removeSync` methods.

(As written by CVE List.)

## Affected

- fs-path: Fixed in 0.0.25
- fs-path (npm): before 0.0.25
- fs-path_project fs-path: before 0.0.25

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://hackerone.com/reports/324491> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/pillys/fs-path/pull/6> (exploit, patch, third-party-advisory, web)
- <https://github.com/pillys/fs-path/commit/88ff5ee51046bb2c5d5e9c5afe6819b032092ce7> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8298> (advisory)

## Sources

- CVE List: [CVE-2020-8298](https://www.cve.org/CVERecord?id=CVE-2020-8298), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8mrf-64fw-2x75](https://github.com/advisories/GHSA-8mrf-64fw-2x75), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-8298](https://nvd.nist.gov/vuln/detail/CVE-2020-8298), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8298 · Whole record: https://cve.day/CVE-2020-8298.json · Rebuilt by cve.day 2026-11-25T22:57:57.533Z
