cvelo
P3 · MediumCVSS 4.2EPSS 0.5%

Koa through 3.3.0 Host Header Validation Bypass via request.hostname

  • CVE-2026-142247
  • GHSA-hmmp-q352-cg4j
  • 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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • koajs Koa

    Affected versionsFixed in
    up to 3.3.0none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.