# CVE-2020-7681: Directory Traversal

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P`
- 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): 1.74%, higher than 78% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-07-25T08:35:19.851Z
- Modified: 2026-06-17T03:25:15.320Z
- Also known as: GHSA-8pww-pp5r-rff8
- Weaknesses: CWE-22
- Assigned by: snyk

## Description

This affects all versions of package marscode. There is no path sanitization in the path provided at fs.readFile in index.js.

(As written by CVE List.)

## Affected

- marscode: before unspecified
- marscode (npm): up to 1.0.1-0
- indo-mars marscode: no versions given

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-MARSCODE-590122> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7681> (advisory)

## Sources

- CVE List: [CVE-2020-7681](https://www.cve.org/CVERecord?id=CVE-2020-7681), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-8pww-pp5r-rff8](https://github.com/advisories/GHSA-8pww-pp5r-rff8), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-7681](https://nvd.nist.gov/vuln/detail/CVE-2020-7681), Public domain, modified 2026-06-17

---

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