Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. json-jwt
  4. ›
  5. CVE-2023-51774

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

February 29, 2024 (updated March 6, 2024)

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.

References

  • github.com/P3ngu1nW/CVE_Request/blob/main/novjson-jwt.md
  • github.com/advisories/GHSA-c8v6-786g-vjx6
  • github.com/nov/json-jwt
  • github.com/nov/json-jwt/commit/593ea8bcaf2629048bad8c036191f2da0a2e713c
  • github.com/nov/json-jwt/commit/9c4d842a9465bd7960570ca326c3de79b4abc9d0
  • github.com/nov/json-jwt/issues/120
  • github.com/nov/json-jwt/issues/121
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/json-jwt/CVE-2023-51774.yml
  • nvd.nist.gov/vuln/detail/CVE-2023-51774

Code Behaviors & Features

Detect and mitigate CVE-2023-51774 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.15.3.1, all versions starting from 1.16.0 before 1.16.6

Fixed versions

  • 1.16.6
  • 1.15.3.1

Solution

Upgrade to versions 1.15.3.1, 1.16.6 or above.

Source file

gem/json-jwt/CVE-2023-51774.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:23 +0000.