{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45363","id":"CVE-2026-45363","title":"`jwt` (Ruby gem) - empty-key HMAC bypass","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_fi","descriptionLong":"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.","published":"2026-07-14T21:32:26.676Z","updated":"2026-10-28T02:31:14.770328110Z","reserved":"2026-05-12T00:51:29.085Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"github.com"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"critical","products":["jwt ruby-jwt"],"affectedProducts":[{"vendor":"jwt","product":"ruby-jwt","defaultStatus":null,"versions":[{"version":"< 2.10.3","status":"affected"},{"version":">= 3.0.0, < 3.2.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"jwt","purl":"pkg:gem/jwt","ranges":[">=3.0.0 <3.2.0","<2.10.3"],"fixed":["3.2.0","2.10.3"],"advisory":"GHSA-c32j-vqhx-rx3x"}],"cwes":["CWE-287","CWE-326","CWE-1391"],"aliases":["GHSA-c32j-vqhx-rx3x"],"references":[{"url":"https://github.com/jwt/ruby-jwt/security/advisories/GHSA-c32j-vqhx-rx3x","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/jwt/ruby-jwt/commit/9820020869ad147b941e49d96ab8beba35532964","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/jwt/ruby-jwt/commit/db560b769a07bd9724e77ff505011ac01872106f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/jwt/ruby-jwt/releases/tag/v2.10.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/jwt/ruby-jwt/releases/tag/v3.2.0","tags":["x_refsource_MISC","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/09/msg00022.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45363.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45363","tags":["advisory"]},{"url":"https://github.com/jwt/ruby-jwt/issues/724","tags":["web"]},{"url":"https://github.com/jwt/ruby-jwt","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jwt/CVE-2026-45363.yml","tags":["web"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-45363","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00364,"epssPercentile":0.30929,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45363","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45363","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45363","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c32j-vqhx-rx3x","ok":true,"note":"GHSA-c32j-vqhx-rx3x"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45363","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}