Sourced from hono's releases.
v4.12.25
Security fixes
This release includes fixes for the following security issues:
CORS Middleware reflects any Origin with credentials when
origindefaults to the wildcardAffects:
hono/cors. Fixes the wildcard origin reflecting the requestOriginand sendingAccess-Control-Allow-Credentials: truewhencredentials: trueis set without an explicitorigin, where any site a logged-in user visited could make credentialed cross-origin requests and read responses from cookie-authenticated endpoints. GHSA-88fw-hqm2-52qcBody Limit Middleware can be bypassed on AWS Lambda by understating
Content-LengthAffects:
hono/body-limiton AWS Lambda (hono/aws-lambda,hono/lambda-edge). Fixes the request being built with the client-declaredContent-Lengthwhile the body is delivered fully buffered, where a client could declare a smallContent-Lengthwith a much larger body and slip past the configured size limit. GHSA-rv63-4mwf-qqc2Path traversal in
serve-staticon Windows via encoded backslash (%5C)Affects:
serveStaticon Windows (Node, Bun, Deno adapters). Fixes the path guard allowing a lone backslash, where an encoded backslash (%5C) decoded to\was treated as a separator by the Windows path resolver, letting a single URL segment escape into a middleware-guarded subtree. GHSA-wwfh-h76j-fc44AWS Lambda adapter merges multiple
Set-Cookieheaders into one value, dropping cookies on ALB single-header and LatticeAffects:
hono/aws-lambda. Fixes multipleSet-Cookieresponse headers being joined into one comma-separated value for ALB single-header responses and VPC Lattice v2, where the value could not be split back into individual cookies and clients silently dropped or misparsed them. GHSA-j6c9-x7qj-28xfLambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest
Affects:
hono/lambda-edge. Fixes repeated request headers being written with overwrite instead of append, where only the last value of a header such asX-Forwarded-Forreached the application and the remaining values were silently dropped. GHSA-wgpf-jwqj-8h8pv4.12.24
What's Changed
- docs(contribution): simplifyAI Usage Policy by
@yusukebein honojs/hono#4972- chore: remove
@types/globby@rtrittoin honojs/hono#4978- fix(bearer-auth): mention verifyToken in missing-options error message by
@tan7virin honojs/hono#4987- refactor(language): Test/improve tests on languages middleware by
@iNeoOin honojs/hono#4980- fix(utils/ipaddr): expand "::" to eight zero groups by
@youcefzemmarin honojs/hono#4973- fix: clean up config files trailing comma, stale excludes, typesVersions gaps, jsr paths by
@Mohammad-Faiz-Cloud-Engineerin honojs/hono#4982- refactor(timing): Test/add test for middleware timing by
@iNeoOin honojs/hono#4991- fix(utils/ipaddr): render the unspecified address binary as "::" by
@sarathfrancis90in honojs/hono#4998Full Changelog: https://github.com/honojs/hono/compare/v4.12.23...v4.12.24
fce483e
4.12.25751ba41
Merge commit from forkf0b094d
Merge commit from forkfa5f9bf
Merge commit from fork3892a6c
Merge commit from fork74c2cf8
test(aws-lambda): update integration tests (#5012)7ae7cba
Merge commit from fork1b13848
chore(ci): bump codecov-action to v7.0.0 (#5011)5fdde5a
4.12.24c78932d
fix(utils/ipaddr): render the unspecified address binary as
"::" (#4998)