CVE-2015-1164: Serve static Open Redirect Vulnerability

LOW
Advisory Identifier: GHSA-c3x7-gjmx-r2ff
CVSS 3.1
CWE-601
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2015-1164
GHSA Identifier GHSA-c3x7-gjmx-r2ff
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Serve static
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

serve-static fixed: 1.7.2
npm install serve-static@1.7.2
serve-static fixed: 1.7.2
npm install serve-static@1.7.2
Verify Direct and Transitive Dependencies

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

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.

CVE-2015-1164 Affected Serve static Versions

2 component(s)
Fixed Versions:
1.7.2
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?
CVE-2015-1164 is a security vulnerability in Serve static involving Open Redirect in serve-static under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Serve static versions are affected?
Affected versions include releases prior to 1.7.2 across affected packages: serve-static.
What version fixes CVE-2015-1164?
Upgrading to 1.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is serve-static affected?
Yes, serve-static is affected in releases prior to 1.7.2. Upgrade your dependency to 1.7.2 or later.
What is the CVSS score of CVE-2015-1164?
CVE-2015-1164 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2015-1164?
CVE-2015-1164 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check npm dependencies for CVE-2015-1164?
Run the dependency tree command: 'npm ls serve-static'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}