koa vulnerabilities

Koa web app framework

Registry
npm
Latest
3.2.1
License
MIT

5 known advisories

The latest version, 3.2.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install koa@3.2.1

Security advisories for koa

  • HighGHSA-7gcc-r8m5-44qm26 Feb 2026

    Koa has Host Header Injection via ctx.hostname

    Affected
    >=3.0.0 <3.1.2 · <2.16.4
    Fixed in
    2.16.4, 3.1.2
  • MediumGHSA-g8mr-fgfg-5qpc21 Oct 2025

    Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic

    Affected
    >=3.0.1 <3.0.3 · >=2.16.2 <2.16.3
    Fixed in
    2.16.3, 3.0.3
  • LowGHSA-jgmv-j7ww-jx2x29 Jul 2025

    Koa Open Redirect via Referrer Header (User-Controlled)

    Affected
    >=2.0.0 <2.16.2 · >=3.0.0-alpha.0 <3.0.1
    Fixed in
    2.16.2, 3.0.1
  • MediumGHSA-x2rg-q646-7m2v9 Apr 2025

    Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function

    Affected
    <2.16.1 · >=3.0.0-alpha.1 <3.0.0-alpha.5
    Fixed in
    2.16.1, 3.0.0-alpha.5
  • CriticalGHSA-593f-38f6-jp5m12 Feb 2025

    Inefficient Regular Expression Complexity in koa

    Affected
    >=2.0.0 <2.15.4 · >=3.0.0-alpha.0 <3.0.0-alpha.3 · >=1.0.0 <1.7.1 · <0.21.2
    Fixed in
    0.21.2, 1.7.1, 2.15.4, 3.0.0-alpha.3

Which of your client projects still run an old koa?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.