CVE-2024-43787
published medium CVSS 3.1 · 5.0Hono CSRF middleware can be bypassed using crafted Content-Type header
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| honojs | hono | < 4.5.8 (affected) | GitHub_M · cna |
| eclipse | hono | 0 to < 4.5.8 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-352 CWE-352: Cross-Site Request Forgery (CSRF)
References
3Provider assertions
2GitHub_M · cna
Hono CSRF middleware can be bypassed using crafted Content-Type header
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 76e86b0b18a9ea7ed33cf7681ce4468f2d4dca17fdfd5206c1fac97b467b57f4
- Ingested
- 23 Sep 2026, 08:27:16 UTC
- Source record
- Official CVE record