Description
Open redirect vulnerability in the serve-static plugin before 1.7.2 for Node.js, when mounted at the root, allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks via a // (slash slash) followed by a domain in the PATH_INFO to the default URI.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-serve-static | 1.6.4-2 | — |
| Debian 13 | node-serve-static | 1.6.4-2 | — |
| Debian 12 | node-serve-static | 1.6.4-2 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nodejs-nodemon | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | serve-static | < 1.7.2 | 1.7.2 | GHSA-c3x7-gjmx-r2ff |
| npm | serve-static | >= 1.7.0, < 1.7.2 | 1.7.2 | GHSA-c3x7-gjmx-r2ff |