CVE-2023-51774: High severity Json-jwt Project Json-jwt Ruby vulnerability

Published Dec 25, 2023
·
Updated

The json-jwt (aka JSON::JWT) gem 1.16.3 for Ruby sometimes allows bypass of identity checks via a sign/encryption confusion attack. For example, JWE can sometimes be used to bypass JSON::JWT.decode.

Other sources

The json-jwt (aka JSON::JWT) gem 1.16.x before 1.16.6, 1.15.x before 1.15.3.1 for Ruby sometimes allows bypass of identity checks via a sign/encryption confusion attack. For example, JWE can sometimes be used to bypass JSON::JWT.decode.

— GitHub

Affected Software

10 affected componentsFixes available
rubygems/json-jwt<1.15.3.1
1.15.3.1
rubygems/json-jwt>=1.16.0<1.16.6
1.16.6
Json-jwt Project Json-jwt Ruby=1.16.3
ubuntu/ruby-json-jwt*
ubuntu/ruby-json-jwt*
ubuntu/ruby-json-jwt*
ubuntu/ruby-json-jwt*
ubuntu/ruby-json-jwt*
ubuntu/ruby-json-jwt*
ubuntu/ruby-json-jwt*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/json-jwt to a version that resolves this vulnerability.

    Fixed in 1.15.3.1
  2. Upgrade

    Upgrade rubygems/json-jwt to a version that resolves this vulnerability.

    Fixed in 1.16.6

Event History

Dec 25, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
Description
Feb 29, 2024
Data Sourced
via OSV·01:42 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·01:42 AM
Description
Advisory Published
via GitHub·03:33 AM
Data Sourced
via GitHub·03:33 AM
DescriptionAffected Software
Mar 1, 2024
Advisory Published
via GitHub·04:56 PM
Mar 4, 2024
Updated
via GitHub·08:16 PM
DescriptionAffected Software
Mar 6, 2024
Updated
via GitHub·11:50 PM
DescriptionAffected Software
Aug 2, 2024
Data Sourced
via MITRE·10:48 PM
Description
Aug 26, 2024
Data Sourced
via NVD·08:35 PM
SeverityWeakness
May 8, 2025
Data Sourced
via NVD·10:48 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-51774?

CVE-2023-51774 is considered a significant vulnerability due to its potential for identity check bypass.

2

How do I fix CVE-2023-51774?

To fix CVE-2023-51774, upgrade the json-jwt gem to version 1.16.6 or 1.15.3.1 or later.

3

Which versions of json-jwt are affected by CVE-2023-51774?

Versions of json-jwt gem 1.16.3, 1.16.x before 1.16.6, and 1.15.x before 1.15.3.1 are affected by CVE-2023-51774.

4

What happens if I don't mitigate CVE-2023-51774?

Failing to mitigate CVE-2023-51774 may allow attackers to exploit the vulnerability, potentially leading to unauthorized access.

5

Is CVE-2023-51774 related to JWE?

Yes, CVE-2023-51774 involves a issue with JWE that can be leveraged to bypass identity checks in the json-jwt gem.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203