Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/koa@3.1.2
purl pkg:npm/koa@3.1.2
Vulnerabilities affecting this package (0)
Vulnerability Summary Fixed by
This package is not known to be affected by vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-ypnn-yfx7-wycp Koa has Host Header Injection via ctx.hostname Koa's `ctx.hostname` API performs naive parsing of the HTTP Host header, extracting everything before the first colon without validating the input conforms to RFC 3986 hostname syntax. When a malformed Host header containing a `@` symbol (e.g., `evil.com:fake@legitimate.com`) is received, `ctx.hostname` returns `evil.com` - an attacker-controlled value. Applications using `ctx.hostname` for URL generation, password reset links, email verification URLs, or routing decisions are vulnerable to Host header injection attacks. CVE-2026-27959
GHSA-7gcc-r8m5-44qm

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-05T22:01:53.031825+00:00 GHSA Importer Fixing VCID-ypnn-yfx7-wycp https://github.com/advisories/GHSA-7gcc-r8m5-44qm 38.6.0
2026-06-04T16:55:18.674787+00:00 GithubOSV Importer Fixing VCID-ypnn-yfx7-wycp https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-7gcc-r8m5-44qm/GHSA-7gcc-r8m5-44qm.json 38.6.0
2026-06-02T04:50:57.147689+00:00 GitLab Importer Fixing VCID-ypnn-yfx7-wycp https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/koa/CVE-2026-27959.yml 38.6.0