Sourced from hono's releases.
v4.12.12
Security fixes
This release includes fixes for the following security issues:
Middleware bypass via repeated slashes in serveStatic
Affects: Serve Static middleware. Fixes a path normalization inconsistency where repeated slashes (
//) could bypass route-based middleware protections and allow access to protected static files. GHSA-wmmm-f939-6g9cPath traversal in toSSG() allows writing files outside the output directory
Affects:
toSSG()for Static Site Generation. Fixes a path traversal issue where craftedssgParamsvalues could write files outside the configured output directory. GHSA-xf4j-xp2r-rqqxIncorrect IP matching in ipRestriction() for IPv4-mapped IPv6 addresses
Affects: IP Restriction Middleware. Fixes improper handling of IPv4-mapped IPv6 addresses (e.g.
::ffff:127.0.0.1) that could cause allow/deny rules to be bypassed. GHSA-xpcf-pg52-r92gMissing validation of cookie name on write path in setCookie()
Affects:
setCookie(),serialize(), andserializeSigned()fromhono/cookie. Fixes missing validation of cookie names on the write path, preventing inconsistent handling between parsing and serialization. GHSA-26pp-8wgv-hjvmNon-breaking space prefix bypass in cookie name handling in getCookie()
Affects:
getCookie()fromhono/cookie. Fixes a discrepancy in cookie name handling that could allow attacker-controlled cookies to override legitimate ones and bypass prefix protections. GHSA-r5rp-j6wh-rvv4
Users who use Serve Static, Static Site Generation, Cookie utilities, or IP restriction middleware are strongly encouraged to upgrade to this version.
v4.12.11
What's Changed
- feat(css): add classNameSlug option to createCssContext by
@flow-piein honojs/hono#4834New Contributors
@flow-piemade their first contribution in honojs/hono#4834Full Changelog: https://github.com/honojs/hono/compare/v4.12.10...v4.12.11
v4.12.10
What's Changed
- test(router): fix
Simple capturing grouptest by@yusukebein honojs/hono#4838- docs: fix impaired -> inspired typo in benchmark READMEs by
@Abhi3975in honojs/hono#4843- fix(jsx/dom): apply select value after children are rendered by
@usualomain honojs/hono#4847- fix(compress): convert strong ETag to weak ETag when compressing by
@usualomain honojs/hono#4848- docs(ip-restriction): add clear JSDoc examples and param types by
@VISHNU7KASIREDDYin honojs/hono#4851New Contributors
@Abhi3975made their first contribution in honojs/hono#4843@VISHNU7KASIREDDYmade their first contribution in honojs/hono#4851
... (truncated)
c37ba26
4.12.12cc067c8
Merge commit from forka586cd7
Merge commit from fork48fa223
Merge commit from forkb470278
Merge commit from fork9aff14b
Merge commit from fork2c403c6
4.12.11f82aba8
feat(css): add classNameSlug option to createCssContext (#4834)9f374a5
4.12.10a8c56a6
docs(ip-restriction): add clear JSDoc examples and param types (#4851)