koa
3.3.0 · 3 Nov 2026MIT9.7M / weekRepositoryHomepagenpmAtom feed
Upgrading koa From 2.0.0 to 3.3.0
50 releases in betweennotes for 16
Reading releases, release notes and advisories…
Counted from 16 of 50 release notes. Advisories are counted from the advisory database, in full.
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 4 advisories affecting 2.0.0
- Inefficient Regular Expression Complexity in koacritical · GHSA-593f-38f6-jp5m
- Koa has Host Header Injection via ctx.hostnamehigh · GHSA-7gcc-r8m5-44qm
- Koa Open Redirect via Referrer Header (User-Controlled)low · GHSA-jgmv-j7ww-jx2x
- Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() functionmoderate · GHSA-x2rg-q646-7m2v
- 3.1.2
security: Host Header Injection via
ctx.hostname - 3.0.0
Avoid redos on host and protocol getter
- 2.15.4
Fix: avoid redos on host and protocol getter, see github.com/koajs/koa/security/advisories/GHSA-5…
Release by release
- 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
- New
- Fixed
Request.length overflows on Content-Length > 2GB
- Fixed
- New
Defer AsyncLocalStorage creation for v8 startup snapshots
- New
- Security
security: Host Header Injection via
ctx.hostname
- Security
- Fixed
Only original value destroy if the new value is not a stream
- Fixed
- New
Fixes mem leak relating to issue-1834
- Fixed
Adds steam clean up
- New
- Fixed
Normalize referer before redirect
- Fixed
- Fixed
Fixes response.attachment behaviour leads to Content-Type Sniffing
- Fixed
1 other line we could not sort, mostly version bumps
- 3.3.0
Make ctx.assert errors instanceof HttpError
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.