Packages

koa

3.3.0 · 3 Nov 2026MIT9.7M / weekRepositoryHomepagenpmAtom feed

Upgrading koa From 2.16.4 to 3.1.2

7 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.16.4Latest3.3.0

Before you upgrade

Tick each one off as you go
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0

Security

  • security: Host Header Injection via ctx.hostname

    3.1.2
  • Avoid redos on host and protocol getter

    3.0.0

Release by release

  1. 3.1.2

    Security fix25 Feb 2026
    • Security

      security: Host Header Injection via ctx.hostname

  2. 3.1.1

    27 Oct 20251 fix
    • Fixed

      Only original value destroy if the new value is not a stream

  3. 3.1.0

    26 Oct 20251 new · 1 fix
    • New

      Fixes mem leak relating to issue-1834

    • Fixed

      Adds steam clean up

  4. 3.0.3

    18 Oct 20251 fix
    • Fixed

      Normalize referer before redirect

  5. 3.0.2

    17 Oct 20251 fix
    • Fixed

      Fixes response.attachment behaviour leads to Content-Type Sniffing

  6. 3.0.1

    27 Jul 20252 new · 1 fix
    • New

      Replace debug module with pure node:util::debuglog

    • New

      Replace cache-content-type with mime-types directly

    • Fixed

      security: Only allow same origin referer on response back 422c551

  7. 3.0.0

    Security fix28 Apr 20253 new · 8 fixes
    • Security

      Avoid redos on host and protocol getter

    • Breaking

      Minimum node v18

    • Breaking

      Removes .redirect('back'), adds .back(fallback_url) @fl0w #1115

    • Breaking

      For .redirect(), don't render redirect values in anchor ref ff25eb4

22 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.