GHSA-c3x7-gjmx-r2ff

Suggest an improvement
Source
https://github.com/advisories/GHSA-c3x7-gjmx-r2ff
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-c3x7-gjmx-r2ff/GHSA-c3x7-gjmx-r2ff.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c3x7-gjmx-r2ff
Aliases
Published
2020-08-31T22:57:02Z
Modified
2023-11-08T03:57:49.518349Z
Severity
  • 3.1 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
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.

Database specific
{
    "github_reviewed": true,
    "severity": "LOW",
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-601"
    ],
    "github_reviewed_at": "2020-08-31T18:08:42Z"
}
References

Affected packages

npm / serve-static

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.2

Database specific

last_known_affected_version_range
"< 1.6.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-c3x7-gjmx-r2ff/GHSA-c3x7-gjmx-r2ff.json"

npm / serve-static

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.7.0
Fixed
1.7.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-c3x7-gjmx-r2ff/GHSA-c3x7-gjmx-r2ff.json"