JWT algorithm confusion in Hono JWK Auth Middleware when JWK lacks "alg" (untrusted header.alg fallback)
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.11.4, there is a flaw in Hono’s JWK/JWKS JWT verification middleware allowed the algorithm specified in the JWT header to influence signature verification when the selected JWK did not explicitly define an algorithm. This could enable JWT algorithm confusion and, in certain configurations, allow forged tokens to be accepted. The JWK/JWKS JWT verification middleware has been updated to require an explicit allowlist of asymmetric algorithms when verifying tokens. The middleware no longer derives the verification algorithm from untrusted JWT header values. This vulnerability is fixed in 4.11.4.
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.11.4 | 4.11.4 |
Affected products
6- osv-coords5 versionspkg:apk/chainguard/honopkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/wolfi/langfuse-3-workerpkg:npm/hono
< 0+ 4 more
- (no CPE)range: < 0
- (no CPE)range: < 3.146.0-r1
- (no CPE)range: < 3.146.0-r1
- (no CPE)range: < 3.146.0-r1
- (no CPE)range: < 4.11.4
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-3vhc-576x-3qv4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-22818ghsaADVISORY
- github.com/honojs/hono/commit/190f6e28e2ca85ce3d1f2f54db1310f5f3eab134ghsax_refsource_MISCWEB
- github.com/honojs/hono/security/advisories/GHSA-3vhc-576x-3qv4ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.