Loading HuntDB...

GHSA-c3x7-gjmx-r2ff

GitHub Security Advisory

Open Redirect in serve-static

✓ GitHub Reviewed LOW Has CVE

Advisory 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.

Affected Packages

npm serve-static
Affected versions: 0 (fixed in 1.7.2)
npm serve-static
Affected versions: 1.7.0 (fixed in 1.7.2)

Related CVEs

Key Information

GHSA ID
GHSA-c3x7-gjmx-r2ff
Published
August 31, 2020 10:57 PM
Last Modified
September 23, 2021 8:59 PM
CVSS Score
2.5 /10
Primary Ecosystem
npm
Primary Package
serve-static
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 29, 2025 6:31 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.