koa
3.3.0 · 3 Nov 2026MIT9.7M / weekRepositoryHomepagenpmAtom feed
113 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 3.x · latest line
3.3.0
3 Nov 2026Summary· from the note as AI read it
Upgrade: this release fixes a security issue.
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
3.2.1
21 May 2026Request.length overflows on Content-Length > 2GB
3.2.0
28 Mar 2026Defer AsyncLocalStorage creation for v8 startup snapshots
What's Changed
Defer AsyncLocalStorage creation for v8 startup snapshots
3.1.2
25 Feb 2026- Security
security: Host Header Injection via
ctx.hostname
What's Changed
- Security
security: Host Header Injection via
ctx.hostname
3.1.1
27 Oct 2025Only original value destroy if the new value is not a stream
3.1.0
26 Oct 2025Fixes mem leak relating to issue-1834
Adds steam clean up
3.0.3
18 Oct 2025Normalize referer before redirect
3.0.2
17 Oct 2025Fixes response.attachment behaviour leads to Content-Type Sniffing
What's Changed
Fixes response.attachment behaviour leads to Content-Type Sniffing
3.0.1
27 Jul 2025security: Only allow same origin referer on response back 422c551
Replace debug module with pure node:util::debuglog
Replace cache-content-type with mime-types directly
What's Changed
security: Only allow same origin referer on response back 422c551
Replace debug module with pure node:util::debuglog
Replace cache-content-type with mime-types directly
3.0.0
28 Apr 2025- Breaking
Minimum node v18
- Breaking
For
.redirect(), don't render redirect values in anchor ref ff25eb4
This is a major release.
Breaking
- 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 - Breaking
req.originshould display the origin header if it exists, not the current hostname #1008.originnow aligns with theOriginheader as used in CORS. - Breaking
.body=<json>should not overwrite type if type already json #1120 - Breaking
Remove special ENOENT support #1861 - this is a big change and will require any file servers to adapt to this change for handling 404s / files not found
- Breaking
Removes generator deprecation messages. Generators are no longer supported. Koa no longer asserts if generators are used.
Set content-length: 0 if body is explicitly set to null @ognjenjevremovic #1528
Remove obsolete createAsyncCtxStorageMiddleware #1817 - Breaking
ctx.thrownow requires a format ofctx.throw(status, error, properties). See: npmjs.com/package/http-errors
New
Support custom streams @KristapsR #1825
Support WHATWG response bodies #1830 @kravorkid
Use asyncLocalStorage to get current context from app, e.g.:
const ctx = app.currentContext.
Fixes
Handle responses when socket is no longer writable @titanism @azlond #1593
Do not response Content-Length if Transfer-Encoding is defined #1562 @charlyzeng
Set body to 'null' if
ctx.type = 'json'andctx.body = null#1059 @likegunCan not get currentContext in error handler (#1758) (Gxkl <gxkl203@gmail.com>)
Fix exports.defaults in package.json #1630
Fix leaky handles in tests #1838
Fix body null checks #1814
Fix passing ctx in error handler #1758
- Security
Avoid redos on host and protocol getter
- 2.x
2.16.4
25 Feb 2026- Security
security: Host Header Injection via
ctx.hostname
2.16.3
18 Oct 2025Normalize referer before redirect
2.16.2
30 Jul 2025Only allow back redirect to the same origin referer
2.16.1
6 Apr 2025fix: don't render redirect values in anchor ref
2.16.0
27 Feb 20252.15.4
11 Feb 2025Fix: avoid redos on host and protocol getter, see github.com/koajs/koa/security/advisories/GHSA-5…
2.0.1 – 2.15.334 releases without a noteShow each
- 2.15.311 Apr 2024no note
- 2.15.221 Mar 2024no note
- 2.15.115 Mar 2024no note
- 2.15.029 Dec 2023no note
- 2.14.212 Apr 2023no note
- 2.14.17 Dec 2022no note
- 2.14.06 Dec 2022no note
- 2.13.419 Oct 2021no note
- 2.13.324 Sep 2021no note
- 2.13.224 Sep 2021no note
- 2.13.14 Jan 2021no note
- 2.13.021 Jun 2020no note
- 2.12.113 Jun 2020no note
- 2.12.017 May 2020no note
- 2.11.028 Oct 2019no note
- 2.10.012 Oct 2019no note
- 2.9.012 Oct 2019no note
- 2.8.228 Sep 2019no note
- 2.8.119 Aug 2019no note
- 2.8.019 Aug 2019no note
- 2.7.028 Jan 2019no note
- 2.6.29 Nov 2018no note
- 2.6.123 Oct 2018no note
- 2.6.023 Oct 2018no note
- 2.5.311 Sep 2018no note
- 2.5.212 Jul 2018no note
- 2.5.126 Apr 2018no note
- 2.5.011 Feb 2018no note
- 2.4.16 Nov 2017no note
- 2.4.06 Nov 2017no note
- 2.3.020 Jun 2017no note
- 2.2.014 Mar 2017no note
- 2.1.08 Mar 2017no note
- 2.0.125 Feb 2017no note
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.