{"id":"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.","aliases":["GHSA-rpfr-3m35-5vx5"],"modified":"2026-08-12T03:51:47.488525073Z","published":"2024-08-22T14:23:44.025Z","related":["CGA-r6xx-rqx3-vmmf"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-352"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43787.json"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/honojs/hono","events":[{"introduced":"0"},{"fixed":"d1c7f6f5f16c3fd3fae5c3fab62200bc935df2c3"},{"fixed":"41ce840379516410dee60c783142e05bb5a22449"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"4.5.8"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*"}}],"versions":["v4.5.7","v4.5.6","v4.5.5","v4.5.4","v4.5.3","v4.5.2","v4.5.1","v4.5.0","v4.4.13","v4.4.12","v4.4.11","v4.4.10","v4.5.0-rc.2","v4.4.9","v4.4.8","v4.4.7","v4.4.6","v4.5.0-rc.1","v4.4.5","v4.4.4","v4.4.3","v4.4.2","v4.4.1","v4.4.0","v4.3.11","v4.3.10","v4.3.9","v4.3.8","v4.3.7","v4.3.6","v4.3.5","v4.3.4","v4.3.3","v4.3.2","v4.3.1","v4.3.0","v4.2.9","v4.2.8","v4.2.7","v4.2.6","v4.2.5","v4.2.4","v4.2.3","v4.2.2","v4.2.1","v4.2.0","v4.1.7","v4.1.6","v4.1.5","v4.1.4","v4.1.3","v4.1.2","v4.1.1","v4.1.0","v4.0.10","v4.1.0-rc.1","v4.0.9","v4.0.8","v4.0.7","v4.0.6","v4.0.5","v4.0.4","v4.0.3","v4.0.2","v4.0.1","v4.0.0","v3.12.12","v3.12.11","v3.12.10","v3.12.9","v4.0.0-rc.3","v3.12.8","v3.12.7","v4.0.0-rc.2","v3.12.6","v4.0.0-rc.1","v3.12.5","v3.12.4","v3.12.3","v3.12.2","v4.0.0-rc.0","v3.12.1","v3.12.0","v3.11.12","v3.11.11","v3.11.10","v3.11.9","v3.11.8","v3.11.7","v3.11.6","v3.11.5","v3.11.4","v3.11.3","v3.11.2","v3.11.1","v3.11.0","v3.10.5","v3.10.4","v3.10.3","v3.10.2","v3.10.1","v3.10.0","v3.9.2","v3.9.1","v3.9.0","v3.9.0-rc.1","v3.8.4","v3.8.3","v3.8.2","v3.8.1","v3.8.0","v3.8.0-rc.3","v3.7.6","v3.8.0-rc.2","v3.7.5","v3.8.0-rc.1","v3.7.4","v3.7.3","v3.7.2","v3.7.1","v3.7.0","v3.6.3","v3.6.2","v3.6.1","v3.6.0","v3.6.0-rc.2","v3.6.0-rc.1","v3.5.8","v3.5.7","v3.5.6","v3.5.5","v3.5.4","v3.5.3","v3.5.2","v3.5.1","v3.5.0","vv3.5.0-rc.1","v3.4.3","v3.4.2","v3.4.1","v3.4.0","v3.3.4","v3.3.3","v3.3.2","v3.3.1","v3.3.0","v3.3.0-rc.1","v3.2.7","v3.2.6","v3.2.5","v3.2.4","v3.2.3","v3.2.2","v3.2.1","v3.2.0","v3.2.0-rc.3","v3.2.0-rc.1","v3.1.8","v3.1.7","v3.1.6","v3.1.5","v3.1.4","v3.1.3","v3.1.2","v3.1.1","v3.1.0","v3.0.5","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v3.0.0-rc.16","v3.0.0-rc.15","v2.7.8","v3.0.0-rc.14","v3.0.0-rc.13","v2.7.7","v2.7.6","v3.0.0-rc.9","v3.0.0-rc.10","v2.7.5","v2.7.4","v2.7.3","v3.0.0-rc.5","v2.7.2","v3.0.0-rc.4","v2.7.1","v2.7.0","v2.6.2","v2.6.1","v2.6.0","v2.5.10","v2.5.9","v2.5.8","v2.5.7","v2.5.6","v2.5.5","v2.5.4","v2.5.3","v2.5.2","v2.5.1","v2.5.0","v2.4.1","v2.4.0","v2.3.2","v2.3.1","v2.3.0","v2.2.5","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.2.0","v2.1.4","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.0.9","v2.0.8","v2.0.7","v2.0.6","v2.0.5","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.6.5-0","v1.6.4","v1.6.3","v1.6.2","v1.6.1","v1.6.0","v1.6.0-0","v1.5.2","v1.5.1","v1.5.0","v1.4.7","v1.4.6","v1.4.5","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0","v1.3.6","v1.3.5","v1.3.4","v1.3.3","v1.3.2","v1.3.1","v1.3.0","v1.2.2","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.0.0","v0.5.10","v0.5.9","v0.5.8","v0.5.7","v0.5.6","v0.5.5","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.2","v0.4.1","v0.4.0","v0.3.8","v0.3.7","v0.3.6","v0.3.5","v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.0","v0.0.16","v0.0.15","v0.0.14","v0.0.13","v0.0.11","v0.0.10","v0.0.9","v0.0.8","v0.0.7","v0.0.5","v0.0.4","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43787.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"}]}