KoaJS vulnerabilities
We track 3 vulnerabilities in KoaJS products across 3 products. 3 are rated high or critical, and none are known to be exploited. The most recent was published on February 26, 2026.
Latest KoaJS vulnerabilities
- 7.5 High severity
Koa is middleware for Node.js using ES2017 async functions.
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 3
- 7.5 High severity
koa: 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
- 7.5 High severity
cors: Origin Validation Error
@koa/cors npm provides Cross-Origin Resource Sharing (CORS) for koa, a web framework for Node.js. Prior to version 5.0.0, the middleware operates in a way that if an allowed origin is not provided, it will return an `Access-Control-Allow-Origin` header with th