Skip to content
Heist/ feed
Back to feed
Critical

ruby-jwt — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-45363

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.

Products
ruby-jwt
Affected versions
1.0.0-3, 1.5.6-1, 2.1.0-2, 2.2.2-1, 2.7.0-2, 2.7.1-1, 3.2.0-1
Fixed versions
Not specified
CVEs
CVE-2026-45363
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:14 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-45363

core-osv · Original source

Published 14 Jul 2026, 22:16 UTC

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.

osv:UBUNTU-CVE-2026-45363

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

Complete source record
{
  "id": "0feb55e428c05227465dfd4599d86c7e635323e26c84c76567d1b9831a9ab47b",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-45363",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-45363",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-45363",
    "products": [
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.6-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.6-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.1.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.2-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.0-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.7.1-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.2.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.1-1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-45363",
      "aliases": [
        "UBUNTU-CVE-2026-45363"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.0.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45363.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "1.0.0-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.5.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45363.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "1.5.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.5.6-1",
            "2.1.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45363.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.1.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.2.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45363.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.2.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.7.0-2",
            "2.7.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45363.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.7.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.7.1-1",
            "3.2.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45363.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "3.2.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.7.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45363.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.7.1-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:22.902289792Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-45363"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-45363",
        "https://www.cve.org/CVERecord?id=CVE-2026-45363",
        "https://github.com/jwt/ruby-jwt/commit/9820020869ad147b941e49d96ab8beba35532964",
        "https://github.com/jwt/ruby-jwt/commit/db560b769a07bd9724e77ff505011ac01872106f",
        "https://github.com/jwt/ruby-jwt/releases/tag/v2.10.3",
        "https://github.com/jwt/ruby-jwt/releases/tag/v3.2.0",
        "https://github.com/jwt/ruby-jwt/security/advisories/GHSA-c32j-vqhx-rx3x"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-45363",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358635,
  "published_at": "2026-07-14T22:16:00+00:00"
}