AploSec / Disclosures / CVE-2026-142189

Medium 5.3ReportedNo fix listedCWE-601npm

http-server through 14.1.1 Open Redirect via Directory Trailing-Slash Redirect

CVE-2026-142189 · published 2026-12-02

In plain words: this type of bug lets someone send users to a site the attacker controls (open redirect). No fixed release is listed yet.

Summary

CVE-2026-142189 affects http-server (npm) <= 14.1.1: Open Redirect via Directory Trailing-Slash Redirect (CWE-601). No fixed release is listed. CVSS 4.0 base score 5.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

References

Severity
Medium 5.3CVSS 4.0, scored by VulnCheck in the CVE record
Package
http-server
Ecosystem
npm
Affected
<= 14.1.1
Fixed
None
Weakness
CWE-601
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finder