Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
NVD Vulnerability Details :
CVE-2026-27959
Analyzed
More InfoOfficial Page
Source-security-advisories@github.com
View Known Exploited Vulnerability (KEV) details
Published At-26 Feb, 2026 | 02:16
Updated At-28 Feb, 2026 | 00:55

Koa is middleware for Node.js using ES2017 async functions. Prior to versions 3.1.2 and 2.16.4, 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 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. Versions 3.1.2 and 2.16.4 fix the issue.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.17.5HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Type: Secondary
Version: 3.1
Base score: 7.5
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CPE Matches

koajs
koajs
>>koa>>Versions before 2.16.14(exclusive)
cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*
koajs
koajs
>>koa>>Versions from 3.0.0(inclusive) to 3.1.2(exclusive)
cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*
Weaknesses
CWE IDTypeSource
CWE-20Primarysecurity-advisories@github.com
NVD-CWE-noinfoPrimarynvd@nist.gov
CWE ID: CWE-20
Type: Primary
Source: security-advisories@github.com
CWE ID: NVD-CWE-noinfo
Type: Primary
Source: nvd@nist.gov
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/koajs/koa/commit/55ab9bab044ead4e82c70a30a4f9dc0fc9c1b6dfsecurity-advisories@github.com
Patch
https://github.com/koajs/koa/commit/b76ddc01fdb703e51652b0fd131d16394cadcfebsecurity-advisories@github.com
Patch
https://github.com/koajs/koa/security/advisories/GHSA-7gcc-r8m5-44qmsecurity-advisories@github.com
Exploit
Vendor Advisory
Hyperlink: https://github.com/koajs/koa/commit/55ab9bab044ead4e82c70a30a4f9dc0fc9c1b6df
Source: security-advisories@github.com
Resource:
Patch
Hyperlink: https://github.com/koajs/koa/commit/b76ddc01fdb703e51652b0fd131d16394cadcfeb
Source: security-advisories@github.com
Resource:
Patch
Hyperlink: https://github.com/koajs/koa/security/advisories/GHSA-7gcc-r8m5-44qm
Source: security-advisories@github.com
Resource:
Exploit
Vendor Advisory
Change History
0Changes found

Details not found