CVE-2015-1164
Open Redirect in serve-static
Description
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » serve-staticvia npm serve-static | < 1.7.2>= 1.7.0, < 1.7.2 | 1.7.2 |
| org.webjars.npm » serve-staticvia npm serve-static | < 1.7.2>= 1.7.0, < 1.7.2 | 1.7.2 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2 |
Most used dependents
- org.webjars.npm » ionic0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2015-1164 | nvd.nist.gov |
| Package | expressjs/serve-static | github.com |
| Web | expressjs/serve-static issue #26 | github.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | vulnerabilities/99936 | exchange.xforce.ibmcloud.com |
| Web | vuln/npm:serve-static:20150113 | snyk.io |
| Web | advisories/35 | npmjs.com |
| Web | bid/72064 | securityfocus.com |
