# CVE-2026-142189: http-server through 14.1.1 Open Redirect via Directory Trailing-Slash Redirect

Source: https://aplosec.si/cve/CVE-2026-142189/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142189

Medium 5.3 · Reported · No fix listed · CWE-601 · npm

# 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

- [Referencehttps://github.com/http-party/http-server/issues/982](https://github.com/http-party/http-server/issues/982)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/http-server-through-14.1.1-open-redirect-via-directory-trailing-slash-redirect](https://www.vulncheck.com/advisories/http-server-through-14.1.1-open-redirect-via-directory-trailing-slash-redirect)

- [Vulnerable codehttps://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L381-L390](https://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L381-L390)

- [Vulnerable codehttps://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#L20-L35)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142189](https://www.cve.org/CVERecord?id=CVE-2026-142189)

**Severity:** Medium 5.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142189)

**Package:** http-server

**Ecosystem:** npm

**Affected:** <= 14.1.1

**Fixed:** None

**Weakness:** CWE-601

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
