npmWorst: Critical6 advisories
koa: known vulnerabilities
koa has 6 reviewed security advisories in the GitHub Advisory Database — 1 critical, 1 high, 2 moderate, 2 low. The most recent was published 2026-02-26. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the koa versions running across your servers, containers and images, and ranks what to patch first.
How to fix koa
Upgrade koa to a release at or above the fixed version shown for each advisory below. For npm:
npm install koa@2.16.4 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (6)
Koa has Host Header Injection via ctx.hostname
High 7.5 CWE-20 CWE-74
— Affected: before 2.16.4. Fixed in 2.16.4. Published 2026-02-26. GHSA-7gcc-r8m5-44qm · CVE-2026-27959
Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic
Moderate 4.7 CWE-601
— Affected: from 2.16.2 up to 2.16.3. Fixed in 2.16.3. Published 2025-10-21. GHSA-g8mr-fgfg-5qpc · CVE-2025-62595
Koa Open Redirect via Referrer Header (User-Controlled)
Low 3.5 CWE-601
— Affected: from 3.0.0-alpha.0 up to 3.0.1. Fixed in 3.0.1. Published 2025-07-29. GHSA-jgmv-j7ww-jx2x · CVE-2025-8129
Duplicate Advisory: Koa Open Redirect via Referrer Header (User-Controlled)
Low 3.5 CWE-601
— Affected: before 3.0.1. Fixed in 3.0.1. Published 2025-07-25. GHSA-mvw6-62qv-vmqf
Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function
Moderate 5.0 CWE-79
— Affected: from 3.0.0-alpha.1 up to 3.0.0-alpha.5. Fixed in 3.0.0-alpha.5. Published 2025-04-09. GHSA-x2rg-q646-7m2v · CVE-2025-32379
Inefficient Regular Expression Complexity in koa
Critical CWE-1333
— Affected: before 0.21.2. Fixed in 0.21.2. Published 2025-02-12. GHSA-593f-38f6-jp5m · CVE-2025-25200
Find koa across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.