Vulnerability
CVE-2024-43787
Hono is a Web application framework that provides support for any JavaScript runtime. Hono CSRF middleware can be bypassed using crafted Content-Type header. MIME types are case insensitive, but isRequestedByFormElementRe only matches lower-case. As a result, attacker can bypass csrf middleware using upper-case form-like MIME type. This vulnerability is fixed in 4.5.8.
15 advisories report this vulnerability, across 2 ecosystems.
Advisories
- CGA-234v-q2xw-fmqv
- CGA-23vg-f7fr-mwpf
- CGA-386f-4jfc-q577
- CGA-3qhh-6wvg-hrm4
- CGA-4h34-7997-pxph
- CGA-7h6h-prv7-jqhh
- CGA-97x6-c584-79vm
- CGA-c43j-2pjc-37x8
- CGA-c8q7-jf9m-h9w3
- CGA-g8xr-vfwj-gfcm
- CGA-h2jg-4jx5-cm4g
- CGA-h6qq-579j-6369
- CGA-hgrh-5q7p-w29x
- CGA-wc2x-3j83-jjp6
-
GHSA-rpfr-3m35-5vx5
Hono CSRF middleware can be bypassed using crafted Content-Type header