# CVE-2026-45363: `jwt` (Ruby gem) - empty-key HMAC bypass

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/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.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-05-18T17:24:55.000Z
- Modified: 2026-10-24T22:10:00.210Z
- Also known as: GHSA-c32j-vqhx-rx3x
- Weaknesses: CWE-287, CWE-326, CWE-1391
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

ruby-jwt is a Ruby implementation of the RFC 7519 OAuth JSON Web Token standard. Prior to 2.10.3 and 3.2.0, JWT.decode(token, '', true, algorithm: 'HS256') accepts an attacker-forged token because OpenSSL::HMAC.digest('SHA256', '', payload) returns a valid digest under an empty key and no empty-key precondition exists in the HMAC algorithm. The same path is reached when a keyfinder block or key_finder: argument returns an empty string, nil, or an array containing nil for an unknown key, affecting HS256, HS384, and HS512 verification through JWT.decode and JWT::EncodedToken#verify_signature!. This issue is fixed in versions 2.10.3 and 3.2.0.

(As written by CVE List.)

## Affected

- jwt ruby-jwt: < 2.10.3; >= 3.0.0, < 3.2.0
- jwt (RubyGems): from 3.0.0 before 3.2.0; before 2.10.3

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/jwt/ruby-jwt/security/advisories/GHSA-c32j-vqhx-rx3x> (web)
- <https://github.com/jwt/ruby-jwt/commit/9820020869ad147b941e49d96ab8beba35532964>
- <https://github.com/jwt/ruby-jwt/commit/db560b769a07bd9724e77ff505011ac01872106f> (web)
- <https://github.com/jwt/ruby-jwt/releases/tag/v2.10.3> (web)
- <https://github.com/jwt/ruby-jwt/releases/tag/v3.2.0> (web)
- <https://lists.debian.org/debian-lts-announce/2026/09/msg00022.html>
- <https://github.com/jwt/ruby-jwt/issues/724> (web)
- <https://github.com/jwt/ruby-jwt> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jwt/CVE-2026-45363.yml> (web)
- <https://www.cve.org/CVERecord?id=CVE-2026-45363> (web)

## Sources

- CVE List: [CVE-2026-45363](https://www.cve.org/CVERecord?id=CVE-2026-45363), CVE Terms of Use, modified 2026-09-19
- GitHub Advisory Database: [GHSA-c32j-vqhx-rx3x](https://github.com/advisories/GHSA-c32j-vqhx-rx3x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-45363](https://nvd.nist.gov/vuln/detail/CVE-2026-45363), Public domain, modified 2026-10-24

---

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