Packages

koa

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

Your version

3.3.0

Latest3 Nov 2026Where it was published

Summary· from the note as AI read it

Security fixUpgrade: this release fixes a security issue.

Before you upgrade

  • Stop setting multiple values for singleton headers like Content-TypeTo check

Security

  • Upgrade to block prototype pollution via query parameter parsing

New

  • feat: re-export http-errors utilities

In short

1 breaking1 security1 new9 fixed15 internal

  • Breaking

    fix: reject multiple values for singleton response headers

    To check
  • Security

    fix: prevent prototype mutation when parsing query parameters

Release note

What's Changed

  • Response content-type value amount as one with testcase

  • re-export http-errors utilities

  • Make ctx.assert errors instanceof HttpError

  • Parse absolute-form request targets in request.URL

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

  • Reject multiple values for singleton response headers

  • Preserve booleans when assigning query parameters

  • Prevent prototype mutation when parsing query parameters

  • Keep prototype-based HttpError instanceof checks

  • Preserve HttpError subclass instance checks

  • Lowercase X-Forwarded-Proto in request.protocol

  • Parse IPv6 hostname from request.host

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.