koa
3.3.0 · 3 Nov 2026MIT9.7M / weekRepositoryHomepagenpmAtom feed
Upgrading koa From 2.16.0 to 3.3.0
14 releases in betweenevery note read
Reading releases, release notes and advisories…
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 3 advisories affecting 2.16.0
- 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
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.