Packages

koa

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

Upgrading koa From 2.16.3 to 3.3.0

11 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.16.3Newest 2.x, Clears its advisory2.16.4
  1. 2.16.3yours
  2. 1 release
  3. 3.0.0security
  4. 5 releases
  5. 3.1.2security
  6. 2 releases
  7. 3.3.0target

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

Fixes 1 advisory affecting 2.16.3

  • 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.3.0

    3 Nov 20261 new · 10 fixes
    • New

      re-export http-errors utilities

    • Fixed

      Response content-type value amount as one with testcase

    • Fixed

      Parse absolute-form request targets in request.URL

    • Fixed

      response: Keep the Blob content type instead of forcing octet-stream

  2. 3.2.1

    21 May 20261 fix
    • Fixed

      Request.length overflows on Content-Length > 2GB

  3. 3.2.0

    28 Mar 20261 new
    • New

      Defer AsyncLocalStorage creation for v8 startup snapshots

  4. 3.1.2

    Security fix25 Feb 2026
    • Security

      security: Host Header Injection via ctx.hostname

  5. 3.1.1

    27 Oct 20251 fix
    • Fixed

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

  6. 3.1.0

    26 Oct 20251 new · 1 fix
    • New

      Fixes mem leak relating to issue-1834

    • Fixed

      Adds steam clean up

  7. 3.0.3

    18 Oct 20251 fix
    • Fixed

      Normalize referer before redirect

  8. 3.0.2

    17 Oct 20251 fix
    • Fixed

      Fixes response.attachment behaviour leads to Content-Type Sniffing

1 other line we could not sort, mostly version bumps
  • Make ctx.assert errors instanceof HttpError

    3.3.0

40 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.