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

Published Dec 2, 2026
·
Updated

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

1 affected component
npm/http-server<=14.1.1

Event History

Dec 2, 2026
CVE Published
via MITRE·04:51 PM
Data Sourced
via MITRE·04:51 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

Any unauthenticated remote attacker can send a crafted request to an affected http-server instance. Exploitation requires a victim to follow the resulting redirect.

2

What conditions are required for a malicious redirect?

The crafted protocol-relative path must include encoded traversal sequences that resolve to an existing subdirectory. The vulnerable trailing-slash handling then builds a 302 Location header from the raw request pathname.

3

Are confidentiality, integrity, or availability impacts expected on the server itself?

The reported impact is limited to low confidentiality and low integrity impact, with no availability impact indicated. The primary risk is redirecting a victim to an attacker-controlled site.

4

How can I check whether an instance is affected?

Instances using npm/http-server through version 14.1.1 are within the stated affected range. Review whether directory requests trigger trailing-slash 302 redirects and whether the Location header reflects an unnormalized raw request pathname.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203