Approved changes feed: RSS · Atom

cpe:2.3:a:koajs:koa:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorKoajs (b257484d-9724-5405-ad62-508d7bec639f)
ProductKoa (6066500b-3581-5095-8439-89afd116bbd4)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/koajs/koa purl2cpe 2026-06-01 10:12:48.309238
pkg:npm/koa purl2cpe 2026-06-01 10:12:48.309240

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-27959 vulnerable 2026-06-08 07:55:14.715937 Koa has Host Header Injection via `ctx.hostname`
HIGH (7.5)
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.
Published: 2026-02-26T01:45:45.668Z
Updated: 2026-07-15T01:12:18.807Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-8129 vulnerable 2026-06-08 07:45:19.669246 KoaJS Koa HTTP Header response.js back redirect
LOW (3.5)
A vulnerability, which was classified as problematic, was found in KoaJS Koa up to 3.0.0. Affected is the function back in the library lib/response.js of the component HTTP Header Handler. The manipulation of the argument Referrer leads to open redirect. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
Published: 2025-07-25T04:02:05.418Z
Updated: 2025-07-25T12:01:53.033Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-62595 vulnerable 2026-06-08 07:39:16.159183 Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic
MEDIUM (4.3)
Koa is expressive middleware for Node.js using ES2017 async functions. In versions 2.16.2 to before 2.16.3 and 3.0.1 to before 3.0.3, a bypass to CVE-2025-8129 was discovered in the Koa.js framework affecting its back redirect functionality. In certain circumstances, an attacker can manipulate the Referer header to force a user’s browser to navigate to an external, potentially malicious website. This occurs because the implementation incorrectly treats some specially crafted URLs as safe relative paths. Exploiting this vulnerability could allow attackers to perform phishing, social engineering, or other redirect-based attacks on users of affected applications. This issue has been patched in version 3.0.3.
Published: 2025-10-21T16:20:43.809Z
Updated: 2025-10-21T16:35:48.461Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-32379 vulnerable 2026-06-08 07:18:59.692115 XSS at ctx.redirect() function in Koajs
MEDIUM (5)
Koa is expressive middleware for Node.js using ES2017 async functions. In koa < 2.16.1 and < 3.0.0-alpha.5, passing untrusted user input to ctx.redirect() even after sanitizing it, may execute javascript code on the user who use the app. This issue is patched in 2.16.1 and 3.0.0-alpha.5.
Published: 2025-04-09T15:56:40.574Z
Updated: 2025-04-09T20:45:15.899Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-25200 vulnerable 2026-06-08 07:12:50.832074 Koa has Inefficient Regular Expression Complexity
Koa is expressive middleware for Node.js using ES2017 async functions. Prior to versions 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3, Koa uses an evil regex to parse the `X-Forwarded-Proto` and `X-Forwarded-Host` HTTP headers. This can be exploited to carry out a Denial-of-Service attack. Versions 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3 fix the issue.
Published: 2025-02-12T17:59:04.615Z
Updated: 2025-02-12T19:29:10.232Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.