v4.12.16 - Security Fixes
Key Points
- JSX tag name validation prevents HTML injection
- Body limit middleware enforces size checks on chunked requests
- Two critical security vulnerabilities patched
Summary
v4.12.16 is a security-focused release addressing two critical vulnerabilities in Hono's JSX handling and body limit middleware.
Key Points
- JSX Tag Name Validation: Fixed unvalidated JSX tag names in
hono/jsxthat could allow HTML injection when usingjsx()orcreateElement()with untrusted input (GHSA-69xw-7hcm-h432) - Body Limit Bypass: Fixed late enforcement in
bodyLimit()middleware for chunked or unknown-length requests, preventing oversized request bodies from reaching handlers (GHSA-9vqf-7f2p-gf9v) - Affected Components: hono/jsx and Body Limit Middleware
Recommendation
Upgrade immediately to patch these security vulnerabilities, especially if handling untrusted JSX input or enforcing request size limits.