Vulnerabilities · 2024 · Hono
CVE-2024-43787
Hono vulnerability
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.
Affected products
Hono. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Hono runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5 · Exploit
- github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449 · Patch
- github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/i
- nvd.nist.gov/vuln/detail/CVE-2024-43787
- github.com/advisories/GHSA-rpfr-3m35-5vx5
- nvd.nist.gov/vuln/detail/CVE-2024-43787
- cve.org/CVERecord?id=CVE-2024-43787
More vulnerabilities in Hono products
CVE-2026-24771CVE-2026-24473CVE-2026-24472CVE-2026-24398CVE-2026-22818CVE-2026-22817CVE-2025-62610CVE-2025-59139All 15
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.