CVE-2026-142189
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L20-L35
- https://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L381-L390
- https://github.com/http-party/http-server/issues/982
- https://www.vulncheck.com/advisories/http-server-through-14.1.1-open-redirect-via-directory-trailing-slash-redirect
CWEs
CWE-601
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.