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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Wed, 02 Dec 2026 17:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Koa through 3.3.0 Host Header Validation Bypass via request.hostname | |
| First Time appeared |
Koajs
Koajs koa |
|
| Weaknesses | CWE-1286 | |
| CPEs | cpe:2.3:a:koajs:koa:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Koajs
Koajs koa |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-12-02T16:49:54.784Z
Reserved: 2026-12-02T15:28:56.257Z
Link: CVE-2026-142247
No data.
Status : Received
Published: 2026-12-02T17:17:49.080
Modified: 2026-12-02T17:17:49.080
Link: CVE-2026-142247
No data.
OpenCVE Enrichment
No data.
Weaknesses