Input validation error in koa - CVE-2026-27959
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to poison password reset URLs generated by Koa applications.
The vulnerability exists due to missing hostname validation in ctx.hostname, which splits malformed Host headers containing @ at the first colon when those headers reach the application. An unauthenticated remote attacker can submit such headers to applications using ctx.hostname for reset links, directing victims to an attacker-controlled site that captures reset tokens when victims click.