{"id":"CVE-2026-142189","summary":"http-server through 14.1.1 Open Redirect via Directory Trailing-Slash Redirect","details":"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.","modified":"2026-12-02T23:45:51.423367799Z","published":"2026-12-02T16:51:01.735Z","database_specific":{"cwe_ids":["CWE-601"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142189.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142189.json"},{"type":"PACKAGE","url":"https://github.com/http-party/http-server"},{"type":"ARTICLE","url":"https://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L20-L35"},{"type":"ARTICLE","url":"https://github.com/http-party/http-server/blob/v14.1.1/lib/core/index.js#L381-L390"},{"type":"REPORT","url":"https://github.com/http-party/http-server/issues/982"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142189"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/http-server-through-14.1.1-open-redirect-via-directory-trailing-slash-redirect"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/http-party/http-server","events":[{"introduced":"0"},{"last_affected":"af0ac3e4b9bd5fff55337aee32bf37f6116c7b4f"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"14.1.1"}],"source":"AFFECTED_FIELD"}]}}],"versions":["v14.1.1","v14.1.0","v13.0.2","v14.0.0","v13.0.1","v13.0.0","v0.13.0","0.11.1","v0.12.3","v0.12.2","v0.12.1","v0.12.0","0.11.0","0.10.0","0.9.0","0.8.5","0.8.4","0.8.3","0.8.2","0.8.1","v0.8.0","v0.7.5","v0.7.4","v0.7.3","v0.7.2","v0.7.1","v0.7.0","v0.6.1","v0.6.0","v0.5.5","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.1","v0.3.1","v0.4.0","v0.2.9","v0.2.7","v0.2.5","v0.2.3","v0.2.2","v0.2.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142189.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"}]}