{"id":"CVE-2026-142247","summary":"Koa through 3.3.0 Host Header Validation Bypass via request.hostname","details":"Koa through 3.3.0 fails to properly validate Host header values containing URL delimiters, allowing remote attackers to bypass hostname allowlists in request.host and request.hostname. Attackers can send a Host header with a backslash, slash, question mark, or hash so ctx.hostname ends with a trusted domain while ctx.href resolves to an attacker host, poisoning redirects and password reset links.","modified":"2026-12-02T23:45:41.730289943Z","published":"2026-12-02T16:49:54.784Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-1286"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142247.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142247.json"},{"type":"PACKAGE","url":"https://github.com/koajs/koa"},{"type":"ARTICLE","url":"https://github.com/koajs/koa/blob/v3.3.0/lib/request.js#L253-L292"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142247"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/koa-through-3.3.0-host-header-validation-bypass-via-request-hostname"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/koajs/koa","events":[{"introduced":"0"},{"last_affected":"b7ead6f7a2bb56e2948b1c5e1cca77483e89c885"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"3.3.0"}]}]}}],"versions":["v3.3.0","v3.2.1","v3.2.0","v3.1.2","v3.1.1","v3.1.0","v3.0.3","v3.0.2","v3.0.1","v3.0.0","3.0.0-alpha.5","3.0.0-alpha.4","2.16.0","3.0.0-alpha.3","3.0.0-alpha.2","3.0.0-alpha.1","3.0.0-alpha.0","2.13.1","2.13.0","2.12.1","2.12.0","2.11.0","2.10.0","2.9.0","2.8.2","2.8.1","2.8.0","2.7.0","2.6.2","2.6.1","2.6.0","2.5.3","0.21.0","2.5.2","2.5.1","2.5.0","2.4.1","2.4.0","2.3.0","2.1.0","2.0.1","2.0.0-alpha.8","2.0.0-alpha.7","2.0.0-alpha.6","2.0.0-alpha.5","2.0.0-alpha.4","2.0.0-alpha.3","2.0.0-alpha.2","2.0.0-alpha.1","1.1.0","1.0.0","0.20.0","0.19.1","0.19.0","0.18.1","0.18.0","0.17.0","0.16.0","0.15.0","0.14.0","0.13.0","0.12.2","0.12.1","0.12.0","0.11.0","0.10.0","0.9.0","0.8.2","0.8.1","0.8.0","0.7.0","0.6.3","0.6.2","0.6.1","0.6.0","0.5.5","0.5.4","0.5.3","0.5.2","0.5.1","0.5.0","0.4.0","0.3.0","0.2.1","0.2.0","0.1.2","0.1.1","0.1.0","0.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142247.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"}]}