LOW 3.1

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)

ArtifactAffected versionsFixed 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

1affected artifacts
2affected versions
1dependent artifacts (est.)
2dependent versions

0% of the dependent artifacts (0) still pull an affected version in their latest release.

DepthDependent versions
Direct
2

Most used dependents

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

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webbugzilla.redhat.com
Webexchange.xforce.ibmcloud.com
Websnyk.io
Webnpmjs.com
Websecurityfocus.com