{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-43787","id":"CVE-2024-43787","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.","descriptionLong":"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","updated":"2026-10-28T02:30:37.235542063Z","reserved":"2024-08-16T14:20:37.323Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["honojs hono"],"affectedProducts":[{"vendor":"honojs","product":"hono","defaultStatus":null,"versions":[{"version":"< 4.5.8","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"hono","purl":"pkg:npm/hono","ranges":["<4.5.8"],"fixed":["4.5.8"],"advisory":"GHSA-rpfr-3m35-5vx5"}],"cwes":["CWE-352"],"aliases":["GHSA-rpfr-3m35-5vx5"],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17","tags":["x_refsource_MISC","Product","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43787.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43787","tags":["advisory"]},{"url":"https://github.com/honojs/hono","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00244,"epssPercentile":0.15842,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-43787","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43787","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-43787","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rpfr-3m35-5vx5","ok":true,"note":"GHSA-rpfr-3m35-5vx5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-43787","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}