CVE-2015-1164: Serve static Open Redirect Vulnerability
LOWCVE-2015-1164 is a LOW (CVSS 3.1) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Serve static libraries in the npm ecosystem. The issue involves open redirect in serve-static. Remediation is available by upgrading affected packages to version 1.7.2.
CVE-2015-1164 at a Glance
Security Impact
CVSS: 3.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2015-1164
To remediate this vulnerability, upgrade all affected Serve static dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install serve-static@1.7.2
npm install serve-static@1.7.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls serve-static
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2015-1164, inspect your project dependencies using npm:
npm ls serve-static
Analyze the terminal output to locate any version of Serve static in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.2), your application is affected.
Note: The npm ls serve-static command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Serve static, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-1164 Affected Serve static Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
serve-static
|
npm |
< 1.7.2
|
1.7.2
|
|
serve-static
|
npm |
≥ 1.7.0
< 1.7.2
|
1.7.2
|
References
Frequently Asked Questions
What is CVE-2015-1164?
Which Serve static versions are affected?
What version fixes CVE-2015-1164?
Is serve-static affected?
What is the CVSS score of CVE-2015-1164?
What CWE is associated with CVE-2015-1164?
How can I check npm dependencies for CVE-2015-1164?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c3x7-gjmx-r2ff",
"modified" : "2021-09-23T20:59:30Z",
"published" : "2020-08-31T22:57:02Z",
"aliases" : [ "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.\n\n\n## Proof of Concept\n\nA link to `http://example.com//www.google.com/%2e%2e` will redirect to `//www.google.com/%2e%2e`\n\nSome browsers will interpret this as `http://www.google.com/%2e%2e`, resulting in an external redirect.\n\n\n## Recommendation\n\nVersion 1.7.x: Update to version 1.7.2 or later.\nVersion 1.6.x: Update to version 1.6.5 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "serve-static"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.7.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.6.5"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "serve-static"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7.0"
}, {
"fixed" : "1.7.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-1164"
}, {
"type" : "WEB",
"url" : "https://github.com/expressjs/serve-static/issues/26"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1181917"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/99936"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/expressjs/serve-static"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/npm:serve-static:20150113"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/35"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/72064"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:08:42Z",
"nvd_published_at" : null
}
}