{"id":"CVE-2024-43787","aliases":["GHSA-rpfr-3m35-5vx5"],"url":"https://o3.security/vulnerability/CVE-2024-43787","summary":"Hono CSRF middleware can be bypassed using crafted Content-Type header","details":"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.","published":"2024-08-22T14:23:44.025Z","modified":"2026-08-08T03:48:06.459272373Z","cvss":{"score":5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"hono","fixedVersion":"4.5.8"}],"fix":{"url":"https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449","label":"honojs/hono@41ce840"},"references":[{"type":"WEB","url":"https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43787.json"},{"type":"ADVISORY","url":"https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43787"},{"type":"FIX","url":"https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:48:06.459272373Z"}}