{"id":"CVE-2020-7681","aliases":["EUVD-2021-1018","GHSA-8pww-pp5r-rff8"],"status":"published","title":"Directory Traversal","description":"This affects all versions of package marscode. There is no path sanitization in the path provided at fs.readFile in index.js.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01738,"percentile":0.77871,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-22"],"published":"2020-07-25T08:35:19Z","modified":"2026-06-17T03:25:15Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"marscode","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.1-0"}]}]},{"source":"osv","ecosystem":"npm","package":"marscode","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.0.1-0"}]}]}],"products":[{"vendor":"indo-mars","product":"marscode"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MARSCODE-590122","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7681","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8pww-pp5r-rff8"}],"sources":{"cve":[{"id":"CVE-2020-7681","title":"Directory Traversal","description":"This affects all versions of package marscode. There is no path sanitization in the path provided at fs.readFile in index.js.","status":"published","published":"2020-07-25T08:35:19.851Z","modified":"2024-09-16T17:38:44.12Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.331892Z"}],"euvd":[{"id":"EUVD-2021-1018","description":"This affects all versions of package marscode. There is no path sanitization in the path provided at fs.readFile in index.js.","status":"published","published":"2020-07-25T08:35:19Z","modified":"2024-09-16T17:38:44Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","level":"high"}],"updated_at":"2026-11-03T00:55:40.170355Z"}],"ghsa":[{"id":"GHSA-8pww-pp5r-rff8","title":"Path Traversal in marscode","description":"This affects all versionsup to and including version 1.0.1-0 of package marscode. There is no path sanitization in the path provided at `fs.readFile` in `index.js`.","status":"published","published":"2021-05-07T16:06:03Z","modified":"2023-09-05T23:32:19Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:02.632342Z"}],"nvd":[{"id":"CVE-2020-7681","description":"This affects all versions of package marscode. There is no path sanitization in the path provided at fs.readFile in index.js.","status":"published","published":"2020-07-25T09:15:11.68Z","modified":"2026-06-17T03:25:15.32Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:10.086163Z"}],"osv":[{"id":"GHSA-8pww-pp5r-rff8","title":"Path Traversal in marscode","description":"This affects all versionsup to and including version 1.0.1-0 of package marscode. There is no path sanitization in the path provided at `fs.readFile` in `index.js`.","status":"published","published":"2021-05-07T16:06:03Z","modified":"2023-11-08T04:04:04.462631Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:42.78452Z"}]}}
