CVE-2015-1164: Open Redirect in serve-static
3.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52907%
CWE
Published
8/31/2020
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
serve-static | npm | < 1.6.5 | 1.7.2 |
serve-static | npm | >= 1.7.0, < 1.7.2 | 1.7.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path handling in directory redirect logic. When serve-static is mounted at root, requests like //www.google.com/%2e%2e
trigger sendRedirect to set Location: //www.google.com/%2e%2e/
. Browsers interpret '//' as a protocol-relative URL, enabling open redirects. The sendRedirect function's failure to validate if the normalized path represents an external target makes it the vulnerable component. This matches the PoC behavior and CWE-601 classification.