CVE Catalog

CVE-2026-22817

High
Published: Translated: NVD NIST

Summary

Hono is a web framework for JavaScript. Prior to version 4.11.4, the JWT middleware for JWK/JWKS verification had a flaw where the JWT header's alg value could influence signature verification when the selected JWK did not explicitly specify an algorithm. This could enable JWT algorithm confusion and, in certain configurations, allow forged tokens to be accepted.

Risk Assessment

The risk is that an attacker could forge JWT tokens, potentially leading to unauthorized access to the application or privilege escalation if the application uses a vulnerable configuration.

Recommendation

It is recommended to immediately upgrade Hono to version 4.11.4 or later. After upgrading, ensure that the alg option is explicitly specified in the JWT middleware configuration.

Other vulnerabilities in Hono

See all
Original NVD description (English source)

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 JWT header’s alg value to influence signature verification when the selected JWK did not explicitly specify an algorithm. This could enable JWT algorithm confusion and, in certain configurations, allow forged tokens to be accepted. As part of this fix, the JWT middleware now requires the alg option to be explicitly specified. This prevents algorithm confusion by ensuring that the verification algorithm is not derived from untrusted JWT header values. This vulnerability is fixed in 4.11.4.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS