serve-static@1.0.0 vulnerabilities

Serve static files

Direct Vulnerabilities

Known vulnerabilities in the serve-static 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
  • L
Open Redirect

When using serve-static middleware version < 1.7.2 and it's configured to mount at the root, it creates an open redirect on the site.

Source: Node Security Project

How to fix Open Redirect?

  • Update to version 1.7.2 or greater (or 1.6.5 if sticking to the 1.6.x line).
    • Disable redirects if not using the feature with 'redirect: false' option and cannot upgrade.

<1.6.5 >=1.7.0 <1.7.2
  • L
Open Redirect

When using serve-static middleware version < 1.7.2 and it's configured to mount at the root, it creates an open redirect on the site.

Source: Node Security Project

How to fix Open Redirect?

  • Update to version 1.7.2 or greater (or 1.6.5 if sticking to the 1.6.x line).
    • Disable redirects if not using the feature with 'redirect: false' option and cannot upgrade.

<1.6.5 >=1.7.0 <1.7.2