VDB
KO
HIGH 7.3

GHSA-47p6-69vm-vw6v

@koa/router has an Access Control Bypass

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / @koa/router
Introduced in: 14.0.0 Fixed in: 15.0.0
Fix npm install @koa/router@15.0.0

References