Low severityNVD Advisory· Published Aug 22, 2024· Updated Aug 22, 2024
Hono CSRF middleware can be bypassed using crafted Content-Type header
CVE-2024-43787
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
hononpm | < 4.5.8 | 4.5.8 |
Affected products
9- osv-coords8 versionspkg:apk/chainguard/honopkg:apk/chainguard/hono-adapter-mqttpkg:apk/chainguard/hono-clipkg:apk/chainguard/hono-compatpkg:apk/chainguard/hono-service-authpkg:apk/chainguard/hono-service-command-routerpkg:apk/chainguard/hono-service-device-registry-jdbcpkg:npm/hono
< 0+ 7 more
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 4.5.8
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-rpfr-3m35-5vx5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-43787ghsaADVISORY
- github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.tsghsax_refsource_MISCWEB
- github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449ghsax_refsource_MISCWEB
- github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.