marked-tree@0.7.4 vulnerabilities

development markdown viewer

Direct Vulnerabilities

Known vulnerabilities in the marked-tree 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

marked-tree is a markdown viewer for viewing markdown within a development environment.

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 sensitive-file in the server's parent directory
  3. curl -s --path-as-is

How to fix Directory Traversal?

There is no fixed version for marked-tree.