honojs/hono
 Watch   
 Star   
 Fork   
6 days ago
hono

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-6g9c

Path traversal in toSSG() allows writing files outside the output directory

Affects: toSSG() for Static Site Generation. Fixes a path traversal issue where crafted ssgParams values could write files outside the configured output directory. GHSA-xf4j-xp2r-rqqx

Incorrect 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-r92g

Missing validation of cookie name on write path in setCookie()

Affects: setCookie(), serialize(), and serializeSigned() from hono/cookie. Fixes missing validation of cookie names on the write path, preventing inconsistent handling between parsing and serialization. GHSA-26pp-8wgv-hjvm

Non-breaking space prefix bypass in cookie name handling in getCookie()

Affects: getCookie() from hono/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.

7 days ago
hono

v4.12.11

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.10...v4.12.11

10 days ago
hono

v4.12.10

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.9...v4.12.10

21 days ago
hono

v4.12.9

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.8...v4.12.9

2026-03-14 16:48:09
hono

v4.12.8

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.7...v4.12.8

2026-03-10 20:01:58
hono

v4.12.7

Security hardening

Ignore __proto__ path segments in parseBody({ dot: true }) to prevent potential prototype pollution when merged with unsafe patterns.


Full Changelog: https://github.com/honojs/hono/compare/v4.12.6...v4.12.7

2026-03-10 11:07:25
hono

v4.12.6

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.5...v4.12.6

2026-03-04 17:40:23
hono

v4.12.5

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.4...v4.12.5

2026-03-03 18:22:43
hono

v4.12.4

Security fixes

This release includes fixes for the following security issues:

SSE Control Field Injection

Affects: streamSSE() in Streaming Helper. Fixes injection of unintended SSE fields by rejecting CR/LF characters in event, id, and retry. https://github.com/honojs/hono/security/advisories/GHSA-p6xx-57qc-3wxr

Cookie Attribute Injection in setCookie()

Affects: setCookie() from hono/cookie. Fixes cookie attribute manipulation by rejecting ;, \r, and \n in domain and path options. https://github.com/honojs/hono/security/advisories/GHSA-5pq2-9x2x-5p6w

Middleware Bypass in Serve Static

Affects: Serve Static middleware. Fixes inconsistent URL decoding that could allow protected static resources to be accessed without triggering route-based middleware. https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr

Users who uses Strreaming Helper, Cookie utility, and Serve Static are strongly encouraged to upgrade to this version.


Other changes

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.3...v4.12.4

2026-02-26 20:59:50
hono

v4.12.3

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.12.2...v4.12.3