Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. serve-static
  4. ›
  5. CVE-2015-1164

CVE-2015-1164: serve-static Open Redirect

January 21, 2015 (updated September 7, 2017)

When using serve-static middleware and it’s configured to mount at the root it creates an open redirect on the site. For example: If a user visits http://example.com//www.google.com/%2e%2e they will be redirected to www.google.com

References

  • github.com/expressjs/serve-static/issues/26
  • www.owasp.org/index.php/Open_redirect

Code Behaviors & Features

Detect and mitigate CVE-2015-1164 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.5, all versions starting from 1.7.0 before 1.7.2

Fixed versions

  • 1.6.5
  • 1.7.2

Solution

Update to version 1.7.2 or greater. It also appears that you can set 'redirect: false' option to disable this behavior.

Impact 4.3 MEDIUM

AV:N/AC:M/Au:N/C:N/I:P/A:N

Learn more about CVSS

Source file

npm/serve-static/CVE-2015-1164.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:50 +0000.