freenode

← CVE tracker

CVE-2026-142247

Koa through 3.3.0 Host Header Validation Bypass via request.hostname

Severity
low CVSS 2.3 (v4.0)
Affects
Koa · koajs
Weakness
CWE-1286: Improper Validation of Syntactic Correctness of Input
Published
2 December 2026 by VulnCheck
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.

Our coverage

We have not written about this one. Know why it matters? Send a tip.