# CVE-2023-51774: json-jwt allows bypass of identity checks via a sign/encryption confusion attack

Source: https://junglewise.ai/threats/cve-2023-51774-json-jwt-allows-bypass-of-identity-checks-via-a-sign-encryption  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-29  
License: CC BY 4.0 with a link back

CVE-2023-51774 · Severity: info · Published 2024-02-29

json-jwt allows bypass of identity checks via a sign/encryption confusion attack

Technologies: [json-jwt (RubyGems)](https://junglewise.ai/threats/technologies/json-jwt). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2023-51774 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-51774 being exploited in the wild.

**How severe is CVE-2023-51774?** Informational severity, published 29 February 2024.

**Which products and versions are affected?** json-jwt (RubyGems) ECOSYSTEM:introduced=1.16.0,fixed=1.16.6.

**Is there a fix for CVE-2023-51774?** Yes. json-jwt (RubyGems): upgrade to 1.16.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-51774?** Check whether you run json-jwt (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- json-jwt (RubyGems): upgrade to 1.16.6 or later

  ```sh
  bundle update json-jwt
  ```


## Affected products

- json-jwt (RubyGems) ECOSYSTEM:introduced=1.16.0,fixed=1.16.6

## Identifiers

- CVE-2023-51774
- GHSA-c8v6-786g-vjx6

## Related threats

- [JSON-jwt Gem lacked element count during splitting of JWE string](https://junglewise.ai/threats/cve-2019-18848-json-jwt-gem-lacked-element-count-during-splitting-of-jwe-string)
- [Json-jwt did not verify the cryptographic signature for data](https://junglewise.ai/threats/cve-2018-1000539-json-jwt-did-not-verify-the-cryptographic-signature-for-data)
