CVE-2026-142189
http-server through 14.1.1 contains an open redirect vulnerability …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L20-L35
- github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L381-L390
- github.com/http-party/http-server/issues/982
- www.vulncheck.com/advisories/http-server-through-14.1.1-open-redirect-via-directory-traili
- nvd.nist.gov/vuln/detail/CVE-2026-142189
- cve.org/CVERecord?id=CVE-2026-142189
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.