marscode@1.0.1 vulnerabilities

marscode

Direct Vulnerabilities

Known vulnerabilities in the marscode package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Directory Traversal

marscode is a web editor created with monaco-editor, jquery file tree and nodejs file tree to read, write, edit, delete (CRUD) files.

Affected versions of this package are vulnerable to Directory Traversal. There is no path sanitization in the path provided at fs.readFile in index.js.

PoC by JHU System Security Lab

  1. Start the server node index.js
  2. Create a file test.js in the server's parent directory
  3. curl -v --path-as-is http://127.0.0.1:8080/../../test.js

How to fix Directory Traversal?

There is no fixed version for marscode.

*