{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-27959","published":"2026-02-26T02:16:23.317000Z","last_modified":"2026-07-15T02:19:12.817000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*","part":"a","vendor":"koajs","product":"koa","version_end_excluding":"2.16.4"},{"criteria":"cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*","part":"a","vendor":"koajs","product":"koa","version_start_including":"3.0.0","version_end_excluding":"3.1.2"}],"cpes_truncated":false,"vendors":["koajs"],"products":["koajs/koa"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-7gcc-r8m5-44qm","ecosystem":"npm","name":"koa","purl":"pkg:npm/koa","ranges":[{"introduced":"3.0.0","fixed":"3.1.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-7gcc-r8m5-44qm","ecosystem":"npm","name":"koa","purl":"pkg:npm/koa","ranges":[{"introduced":"0","fixed":"2.16.4"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2026-27959/","html_en":"/en/cve/CVE-2026-27959/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-27959","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-27959"},"untrusted":{"vendor_name":"Koajs","product_name":"Koa","desc_en":"Koa is middleware for Node.js using ES2017 async functions. Prior to versions 3.1.2 and 2.16.4, Koa's `ctx.hostname` API performs naive parsing of the HTTP Host header, extracting everything before the first colon without validating the input conforms to RFC 3986 hostname syntax. When a malformed Host header containing a `@` symbol is received, `ctx.hostname` returns `evil[.]com` - an attacker-controlled value. Applications using `ctx.hostname` for URL generation, password reset links, email verification URLs, or routing decisions are vulnerable to Host header injection attacks. Versions 3.1.2 and 2.16.4 fix the issue.","affected":[{"untrusted_vendor":"koajs","untrusted_product":"koa","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat OpenShift AI 2.25","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat OpenShift Container Platform 4.19","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Developer Hub","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat OpenShift AI (RHOAI)","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat OpenShift Dev Spaces","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Self-service automation portal 2","versions":[]}],"references":[{"url":"https://github.com/koajs/koa/commit/55ab9bab044ead4e82c70a30a4f9dc0fc9c1b6df","tags":["Patch"]},{"url":"https://github.com/koajs/koa/commit/b76ddc01fdb703e51652b0fd131d16394cadcfeb","tags":["Patch"]},{"url":"https://github.com/koajs/koa/security/advisories/GHSA-7gcc-r8m5-44qm","tags":["Exploit","Vendor Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2026:7249","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-27959","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442928","tags":[]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27959.json","tags":[]}]}}