Vulnerabilities

CVE-2026-45363

Critical 9.1 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-07-14
Last modified
2026-10-24
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Scored by
security-advisories@github.com
Probability of exploitation
0.2 % higher than 15 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Weakness type

  • CWE-1391: Use of Weak Credentials

    The product uses weak credentials (such as a default key or hard-coded password) that can be calculated, derived, reused, or guessed by an attacker.

  • CWE-287: Improper Authentication

    When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

  • CWE-326: Inadequate Encryption Strength

    The product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required.

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1040: Network Sniffing credential-access, discovery
  • T1110: Brute Force credential-access
  • T1134: Access Token Manipulation stealth, privilege-escalation
  • T1185: Browser Session Hijacking collection
  • T1505.003: Web Shell persistence
  • T1548: Abuse Elevation Control Mechanism privilege-escalation
  • T1550.001: Application Access Token lateral-movement
  • T1557: Adversary-in-the-Middle credential-access, collection
  • T1563: Remote Service Session Hijacking lateral-movement

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities