CVE-2024-43787
MEDIUM 5.0CVSS 3.1Hono CSRF middleware can be bypassed using crafted Content-Type header
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
- 22 Aug 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-352
- Also known as
- GHSA-rpfr-3m35-5vx5
- Sources
- NVDJSONOSV GHSA-rpfr-3m35-5vx5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hono | honocpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:* |
< 4.5.8 | 4.5.8 |
| OSV | npm | hono | < 4.5.8 | 4.5.8 |
References
- https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17 · Product, WEB
- https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449 · Patch, WEB
- https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-43787 · ADVISORY
- https://github.com/honojs/hono · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 22 Aug 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Aug 2024)