CVE-2026-45363: CWE-287: Improper Authentication in jwt ruby-jwt
ruby-jwt versions prior to 2.10.3 and 3.2.0 contain an improper authentication vulnerability in the JWT.decode method when using HS256, HS384, or HS512 algorithms. The issue arises because an empty key is accepted during HMAC verification, allowing attacker-forged tokens to be validated. This vulnerability is fixed in versions 2.10.3 and 3.2.0.
AI Analysis
Technical Summary
The ruby-jwt library, implementing RFC 7519 JSON Web Tokens, improperly authenticates tokens when the HMAC key is empty or nil. Specifically, prior to versions 2.10.3 and 3.2.0, JWT.decode(token, '', true, algorithm: 'HS256') accepts attacker-forged tokens because OpenSSL::HMAC.digest with an empty key returns a valid digest and no check prevents empty keys. This affects HS256, HS384, and HS512 algorithms and occurs when the keyfinder returns empty or nil values. The vulnerability allows bypassing signature verification, compromising token integrity and authentication.
Potential Impact
An attacker can forge JWT tokens that are accepted as valid by vulnerable ruby-jwt versions, leading to unauthorized access and potential privilege escalation. The vulnerability impacts confidentiality and integrity of authentication mechanisms relying on these tokens. The CVSS score of 9.1 reflects a critical severity with network attack vector, no privileges required, and no user interaction needed.
Mitigation Recommendations
A fix is available in ruby-jwt versions 2.10.3 and 3.2.0. Users should upgrade to these versions or later to remediate this vulnerability. Since this is a library, ensure all dependent applications update their ruby-jwt dependency accordingly. The vendor manages remediation for the cloud-hosted service if applicable; check vendor advisories for confirmation.
CVE-2026-45363: CWE-287: Improper Authentication in jwt ruby-jwt
Description
ruby-jwt versions prior to 2.10.3 and 3.2.0 contain an improper authentication vulnerability in the JWT.decode method when using HS256, HS384, or HS512 algorithms. The issue arises because an empty key is accepted during HMAC verification, allowing attacker-forged tokens to be validated. This vulnerability is fixed in versions 2.10.3 and 3.2.0.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The ruby-jwt library, implementing RFC 7519 JSON Web Tokens, improperly authenticates tokens when the HMAC key is empty or nil. Specifically, prior to versions 2.10.3 and 3.2.0, JWT.decode(token, '', true, algorithm: 'HS256') accepts attacker-forged tokens because OpenSSL::HMAC.digest with an empty key returns a valid digest and no check prevents empty keys. This affects HS256, HS384, and HS512 algorithms and occurs when the keyfinder returns empty or nil values. The vulnerability allows bypassing signature verification, compromising token integrity and authentication.
Potential Impact
An attacker can forge JWT tokens that are accepted as valid by vulnerable ruby-jwt versions, leading to unauthorized access and potential privilege escalation. The vulnerability impacts confidentiality and integrity of authentication mechanisms relying on these tokens. The CVSS score of 9.1 reflects a critical severity with network attack vector, no privileges required, and no user interaction needed.
Mitigation Recommendations
A fix is available in ruby-jwt versions 2.10.3 and 3.2.0. Users should upgrade to these versions or later to remediate this vulnerability. Since this is a library, ensure all dependent applications update their ruby-jwt dependency accordingly. The vendor manages remediation for the cloud-hosted service if applicable; check vendor advisories for confirmation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-12T00:51:29.085Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Is Cloud Service
- true
Threat ID: 6a56aea068715ace4342b0c5
Added to database: 07/14/2026, 21:48:16 UTC
Last enriched: 07/21/2026, 22:44:09 UTC
Last updated: 08/28/2026, 22:52:11 UTC
Views: 208
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.