PatchSiren cyber security CVE debrief
CVE-2026-9495 koajs CVE debrief
CVE-2026-9495 documents an access control bypass vulnerability in @koa/router versions 14.0.0 through 14.x, where middleware is silently dropped from the execution chain when a router prefix contains path parameters. This defect can enable authentication/authorization bypass, rate limit evasion, or input sanitization bypass depending on the skipped middleware's purpose. The vulnerability was disclosed on 2026-05-26 and carries a CVSS 4.0 score of 5.5 (MEDIUM). A fix is available in version 15.0.0.
- Vendor
- koajs
- Product
- @koa/router
- CVSS
- MEDIUM 5.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-26
- Original CVE updated
- 2026-05-26
- Advisory published
- 2026-05-26
- Advisory updated
- 2026-05-26
Who should care
Organizations using @koa/router versions 14.0.0 through 14.x in production applications, particularly those relying on middleware for security controls. Development teams using parameterized route prefixes with security-critical middleware chains. Security teams auditing Node.js/Koa applications for access control weaknesses.
Technical summary
The @koa/router package (versions 14.0.0 to 14.x) fails to properly execute middleware when a router prefix contains path parameters (e.g., /users/:id). The middleware is silently dropped from the execution chain without error, causing security-critical middleware—such as authentication, authorization, rate limiting, or input sanitization—to be skipped. An attacker who can craft requests matching routes with parameterized prefixes may bypass these controls. The vulnerability is classified as CWE-284 (Improper Access Control). The fix in version 15.0.0 ensures middleware is correctly registered and executed regardless of prefix parameterization.
Defensive priority
medium
Recommended defensive actions
- Upgrade @koa/router to version 15.0.0 or later
- Review application routes for router prefixes containing path parameters
- Audit middleware chains to identify security-critical middleware that may be affected
- Test authentication, authorization, rate limiting, and input sanitization flows after upgrade
- Monitor application logs for unexpected middleware execution patterns
Evidence notes
The vulnerability affects @koa/router 14.0.0 through versions before 15.0.0. The root cause is middleware being silently dropped when router prefixes contain path parameters. The fix was committed to the koajs/router repository and released in version 15.0.0.
Official resources
2026-05-26