CVE-2026-9495: @koa/router @koa/router Has An Access Control Vulnerability
MODERATECVE-2026-9495 is a MODERATE (CVSS 7.3) @koa/router has an access control vulnerability (CWE-284: Improper Access Control) affecting @koa/router libraries in the npm ecosystem. The issue involves @koa/router has an access control bypass. Remediation is available by upgrading affected packages to version 15.0.0.
CVE-2026-9495 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2026-9495
To remediate this vulnerability, upgrade all affected @koa/router dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @koa/router@15.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @koa/router
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-9495, inspect your project dependencies using npm:
npm ls @koa/router
Analyze the terminal output to locate any version of @koa/router in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 15.0.0), your application is affected.
Note: The npm ls @koa/router command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In @koa/router, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-9495 Affected @koa/router Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@koa/router
|
npm |
≥ 14.0.0
< 15.0.0
|
15.0.0
|
References
Frequently Asked Questions
What is CVE-2026-9495?
Which @koa/router versions are affected?
What version fixes CVE-2026-9495?
Is @koa/router affected?
What is the CVSS score of CVE-2026-9495?
What CWE is associated with CVE-2026-9495?
How can I check npm dependencies for CVE-2026-9495?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-47p6-69vm-vw6v",
"modified" : "2026-06-30T17:39:43Z",
"published" : "2026-05-26T13:30:54Z",
"aliases" : [ "CVE-2026-9495" ],
"summary" : "@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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@koa/router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "14.0.0"
}, {
"fixed" : "15.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-9495"
}, {
"type" : "WEB",
"url" : "https://github.com/koajs/router/issues/202"
}, {
"type" : "WEB",
"url" : "https://github.com/koajs/router/pull/206"
}, {
"type" : "WEB",
"url" : "https://github.com/koajs/router/commit/d53e17f284557b1f417946f9807ee52290c3c759"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/koajs/router"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-KOAROUTER-12215044"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-30T17:39:43Z",
"nvd_published_at" : "2026-05-26T07:16:19Z"
}
}