CVE-2024-48913
Hono vulnerable to bypass of CSRF Middleware by a request without Content-Type header.
Reported by github_m · Published October 15, 2024
Hono, a web framework, prior to version 4.6.5 is vulnerable to bypass of cross-site request forgery (CSRF) middleware by a request without Content-Type header. Although the CSRF middleware verifies the Content-Type Header, Hono always considers a request without a Content-Type header to be safe. This can allow an attacker to bypass CSRF protection implemented with Hono CSRF middleware. Version 4.6.5 fixes this issue.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| honojs | hono | < 4.6.5 |
| chainguard | hono | * |
| honojs | hono | 0 |
| honojs | hono | |
| hono | hono | 0 |
| npm | hono | 0 |
Timeline
- Oct 15, 2024 CVE Published
- Oct 15, 2024 Coalition ESS Score (10 in total, the first dated here)
- Oct 15, 2024 PoC Published
- Oct 16, 2024 EPSS Score (30 in total, the first dated here)
- Nov 7, 2024 CVE Updated
- Jan 3, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-48913
vulnetix vdb fixes CVE-2024-48913
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-48913/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/honojs/hono/security/advisories/GHSA-2234-fmw7-43wr x_refsource_CONFIRM
- https://github.com/honojs/hono/commit/aa50e0ab77b5af8c53c50fe3b271892f8eeeea82 x_refsource_MISC
- https://github.com/honojs/hono/blob/cebf4e87f3984a6a034e60a43f542b4c5225b668/src/middleware/csrf/index.ts#L76-L89 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-48913 advisory
- https://github.com/advisories/GHSA-2234-fmw7-43wr advisory
- https://github.com/honojs/hono url