Is koa 3.1 vulnerable?

npm · 3 releases from 3.1.0 to 3.1.2 · latest koa is 3.2.1 · checked 2 Nov 2026

No known advisories in the last release

koa 3.1.2, the last 3.1 release, has no known advisories. 1 advisory affects earlier 3.1.x releases, so update to 3.1.2.

Update within 3.1:npm install koa@3.1.2

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Fixed within 3.1.x, affecting earlier releases

  • HighCVE-2026-27959GHSA-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

Which of your client projects are still on koa 3.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact koa version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other koa versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.