CVE-2020-7681: Path Traversal in marscode
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63642%
CWE
Published
5/7/2021
Updated
9/5/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| marscode | npm | <= 1.0.1-0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly states there's no path sanitization in the fs.readFile call in index.js. Multiple sources (GitHub Advisory, NVD, Snyk) confirm the path parameter to fs.readFile is vulnerable to traversal attacks. The PoC demonstrates exploitation via crafted paths, directly implicating this function. No other functions are mentioned in the advisory materials.