PT-2024-33264 · Hono · Hono

Kageshiron

·

Published

2024-10-15

·

Updated

2025-09-17

·

CVE-2024-48913

CVSS v3.1

5.9

Medium

VectorAV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N
Name of the Vulnerable Software and Affected Versions Hono versions prior to 4.6.5
Description The issue allows an attacker to bypass cross-site request forgery (CSRF) protection implemented with Hono CSRF middleware by sending a request without a Content-Type header. Although the CSRF middleware verifies the Content-Type Header, Hono considers a request without a Content-Type header to be safe. This can be exploited using the fetch API, which does not add a Content-Type header for requests without a body.
Recommendations For Hono versions prior to 4.6.5, update to version 4.6.5 to fix the issue. As a temporary workaround, consider implementing additional validation for requests without a Content-Type header to prevent bypassing CSRF protection. Restrict access to sensitive endpoints that rely on Hono's CSRF middleware until the update is applied.

Exploit

Fix

CSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-48913
GHSA-2234-FMW7-43WR

Affected Products

Hono