Advisory

GHSA-c3x7-gjmx-r2ff

Also known as: CVE-2015-1164

Summary

Open Redirect in serve-static

Details

Versions of serve-static prior to 1.6.5 ( or 1.7.x prior to 1.7.2 ) are affected by an open redirect vulnerability on some browsers when configured to mount at the root directory.

Proof of Concept

A link to http://example.com//www.google.com/%2e%2e will redirect to //www.google.com/%2e%2e

Some browsers will interpret this as http://www.google.com/%2e%2e, resulting in an external redirect.

Recommendation

Version 1.7.x: Update to version 1.7.2 or later.
Version 1.6.x: Update to version 1.6.5 or later.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2020-08-31 22:57 UTC
Modified
2023-11-08 03:57 UTC

Affected packages and fixes

serve-static

npm · All systems

Affected

  • introduced 0, fixed 1.7.2 (semver)

Fixed versions

1.7.2

Fix

serve-static

npm · All systems

Affected

  • introduced 1.7.0, fixed 1.7.2 (semver)

Fixed versions

1.7.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences