What’s Vulnerable › Vulnerabilities

CVE-2024-48913: Hono vulnerable to bypass of CSRF Middleware by a request without Content-Type header.

Description

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.

Affected products

How to fix

Upgrade to a fixed version: honojs hono 4.6.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-48913 or the next vulnerability affects your stack