Open Redirect Affecting node-static package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NODESTATIC-1297184
  • published28 May 2021
  • disclosed28 May 2021
  • creditUnknown

Introduced: 28 May 2021

CVE NOT AVAILABLE CWE-601  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

node-static is a rfc 2616 compliant HTTP static-file server module, with built-in caching.

Affected versions of this package are vulnerable to Open Redirect. The package fails to sanitize URLs and may redirect users to domains passed through the URL. The possible redirect domains are restricted to hosts whose name matches a served folder from the application. For example if the application serves the folder ./public and has a folder ./public/example.com, accessing localhost:8080//example.com redirects to https://www.example.com/.

References

CVSS Scores

version 3.1