npm
CVE-2026-142189
http-server through 14.1.1 Open Redirect via Directory Trailing-Slash Redirect
- Severity
- Medium 5.3
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Weakness
- Open redirect (CWE-601)
- Attack
- Over the network · No login needed · Needs someone to view a page or file
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N- Sources
- CVE Program
Description
http-server through 14.1.1 contains an open redirect vulnerability in lib/core/index.js that builds the 302 Location header from the raw request pathname plus a slash. Unauthenticated attackers can craft protocol-relative paths with encoded traversal sequences resolving to an existing subdirectory, redirecting victims to attacker-controlled sites.
Affected software
| Software | Affected versions |
|---|---|
http-servernpm · osv:npm:http-server |
|
About http-server
- Weekly downloads (npm)
- 8,259,686npm, 2 Dec 2026
This is the only vulnerability in http-server in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142189