{"id":"CVE-2024-43787","state":"PUBLISHED","title":"Hono CSRF middleware can be bypassed using crafted Content-Type header","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.","publishedAt":"2024-08-22T14:23:44.025Z","updatedAt":"2024-08-22T15:40:32.051Z","severity":{"score":5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["honojs hono"],"affected":[{"vendor":"honojs","product":"hono","versions":[{"version":"< 4.5.8","status":"affected"}]}],"references":["https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5","https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449","https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17"],"weaknesses":["CWE-352"],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/43xxx/CVE-2024-43787.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-43787","state":"PUBLISHED","datePublished":"2024-08-22T14:23:44.025Z","dateUpdated":"2024-08-22T15:40:32.051Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-08-16T14:20:37.323Z"},"containers":{"cna":{"title":"Hono CSRF middleware can be bypassed using crafted Content-Type header","descriptions":[{"lang":"en","value":"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":[{"vendor":"honojs","product":"hono","versions":[{"version":"< 4.5.8","status":"affected"}]}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5","name":"https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449","name":"https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449","tags":["x_refsource_MISC"]},{"url":"https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17","name":"https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-352","lang":"en","description":"CWE-352: Cross-Site Request Forgery (CSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-08-22T14:23:44.025Z"},"source":{"advisory":"GHSA-rpfr-3m35-5vx5","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"eclipse","product":"hono","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"4.5.8","versionType":"custom"}],"cpes":["cpe:2.3:a:eclipse:hono:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-22T15:39:07.762887Z","id":"CVE-2024-43787","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-22T15:40:32.051Z"}}]}}}