{"id":"CVE-2026-142247","aliases":["EUVD-2026-141583","GHSA-hmmp-q352-cg4j"],"status":"published","title":"Koa through 3.3.0 Host Header Validation Bypass via request.hostname","description":"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.","severity":{"version":"4.0","score":2.3,"vector":"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","level":"low","assessor":"cna","from":"cve","others":[{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},{"version":"4.0","score":2.3,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low","from":"ghsa"}]},"epss":{"day":"2026-12-04","score":0.00519,"percentile":0.4563,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1286"],"published":"2026-12-02T16:49:54Z","modified":"2026-12-04T16:29:40Z","products":[{"vendor":"koajs","product":"koa"}],"references":[{"url":"https://github.com/koajs/koa/blob/v3.3.0/lib/request.js#L253-L292","tags":["technical-description","article"]},{"url":"https://www.vulncheck.com/advisories/koa-through-3.3.0-host-header-validation-bypass-via-request-hostname","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142247","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hmmp-q352-cg4j"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142247.json","tags":["advisory"]},{"url":"https://github.com/koajs/koa","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-142247","title":"Koa through 3.3.0 Host Header Validation Bypass via request.hostname","description":"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.","status":"published","published":"2026-12-02T16:49:54.784Z","modified":"2026-12-02T22:07:25.775Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low","assessor":"cna"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-1286"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T22:21:19.10687Z"}],"euvd":[{"id":"EUVD-2026-141583","description":"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.","status":"published","published":"2026-12-02T16:49:54Z","modified":"2026-12-02T22:07:25Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low"}],"updated_at":"2026-12-02T21:27:23.327078Z"}],"ghsa":[{"id":"GHSA-hmmp-q352-cg4j","title":"Koa through 3.3.0 fails to properly validate Host header values containing URL delimiters,...","description":"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.","status":"published","published":"2026-12-02T18:31:48Z","modified":"2026-12-02T18:31:54Z","cvss":[{"version":"4.0","score":2.3,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-1286"],"updated_at":"2026-12-02T18:38:43.855074Z"}],"nvd":[{"id":"CVE-2026-142247","description":"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.","status":"published","published":"2026-12-02T17:17:49.08Z","modified":"2026-12-04T16:29:40.94Z","cvss":[{"version":"4.0","score":2.3,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low","assessor":"secondary"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-1286"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T23:19:38.051602Z"}],"osv":[{"id":"CVE-2026-142247","title":"Koa through 3.3.0 Host Header Validation Bypass via request.hostname","description":"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.","status":"published","published":"2026-12-02T16:49:54.784Z","modified":"2026-12-03T21:02:05.438997662Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low"}],"cwes":["CWE-1286"],"updated_at":"2026-12-03T21:10:05.302032Z"}]}}
