rollup-plugin-serve@1.1.0 vulnerabilities

Serve your rolled up bundle

Direct Vulnerabilities

Known vulnerabilities in the rollup-plugin-serve 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

rollup-plugin-serve is a rollup plugin to serve the bundle.

Affected versions of this package are vulnerable to Directory Traversal. There is no path sanitization in readFile operation.

PoC by JHU System Security Lab

Step 1: start a server

  var server = require("rollup-plugin-serve");
      host: 'localhost',
      port: 9000

Step 2: create a file named file in the parent directory of the server's home directory.
Step 3: curl -v --path-as-is

How to fix Directory Traversal?

There is no fixed version for rollup-plugin-serve.