Skip to main content
← All vulnerabilities
CVE-2024-43787GHSA-RPFR-3M35-5VX5

Hono CSRF middleware can be bypassed using crafted Content-Type header

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.5.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • honojs hono

    fixed in 4.5.8

  • hononpm

    fixed in 4.5.8

References 3

GitHub · honojs/hono