Vulnerability · Published Oct 15, 2024 · Assigned by GitHub_M

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

Medium 5.9

In plain English

A medium-severity cross-site request forgery in hono from honojs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.3%top 74.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmhono4.6.5GHSA-2234-fmw7-43wr

Affected products (as reported)

VendorProductVersions
honojs hono < 4.6.5

Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N

References