All vulnerabilities

npm

CVE-2026-142247

Koa through 3.3.0 Host Header Validation Bypass via request.hostname

Severity
Low 2.3
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
CWE-1286
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to view a page or file
Attacker can
Read some data · Change some data
CVSS 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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
koanpm · osv:npm:koa
  • Every version up to 3.3.0

About koa

Weekly downloads (npm)
9,267,774npm, 2 Dec 2026

This is the only vulnerability in koa in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142247