CVE-2026-9495: @koa/router has an Access Control Bypass
Versions of the package @koa/router from 14.0.0 and before 15.0.0 are vulnerable to Access Control Bypass due to the middleware being silently dropped from the execution chain when the router prefix contains path parameters. Depending on what the skipped middleware was supposed to protect, an attacker could bypass authentication and authorization, evade rate limiting or bypass input sanitization.
Published May 26, 2026 · Updated Jun 30, 2026
Affected packages
@koa/router
- Ecosystem
- npm
- Affected
- >= 14.0.0, < 15.0.0
- Fixed in
- 15.0.0
- Check
npm ls @koa/router
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package @koa/router from 14.0.0 and before 15.0.0 are vulnerable to Access Control Bypass due to the middleware being silently dropped from the execution chain when the router prefix contains path parameters. Depending on what the skipped middleware was supposed to protect, an attacker could bypass authentication and authorization, evade rate limiting or bypass input sanitization.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-9495
- https://github.com/koajs/router/issues/202
- https://github.com/koajs/router/pull/206
- https://github.com/koajs/router/commit/d53e17f284557b1f417946f9807ee52290c3c759
- https://security.snyk.io/vuln/SNYK-JS-KOAROUTER-12215044
- https://github.com/advisories/GHSA-47p6-69vm-vw6v
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
