# CVE-2026-22817: JWT Algorithm Confusion via Unsafe Default (HS256) in Hono JWT Middleware Allows Token Forgery and Auth Bypass

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-01-13T19:49:55.316Z
- Modified: 2026-09-10T03:50:33.087Z
- Also known as: GHSA-f67f-6cw9-8mq4
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- honojs hono: < 4.11.4
- hono (npm): before 4.11.4
- hono hono: before 4.11.4

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-f67f-6cw9-8mq4> (third-party-advisory, web)
- <https://github.com/honojs/hono/commit/cc0aa7ae327ed84cc391d29086dec2a3e44e7a1f> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22817> (advisory)
- <https://github.com/honojs/hono> (package)

## Sources

- CVE List: [CVE-2026-22817](https://www.cve.org/CVERecord?id=CVE-2026-22817), CVE Terms of Use, modified 2026-01-14
- GitHub Advisory Database: [GHSA-f67f-6cw9-8mq4](https://github.com/advisories/GHSA-f67f-6cw9-8mq4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-22817](https://nvd.nist.gov/vuln/detail/CVE-2026-22817), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22817 · Whole record: https://cve.day/CVE-2026-22817.json · Rebuilt by cve.day 2026-11-25T22:59:12.815Z
