VDB
Sign up
HIGH7.3

GHSA-47p6-69vm-vw6v

@koa/router has an Access Control Bypass

Quick fix

GHSA-47p6-69vm-vw6v — @koa/router: upgrade to the fixed version with the command below.

npm install @koa/router@15.0.0

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.0Fixed in: 15.0.0
Fixnpm install @koa/router@15.0.0

References