{"id":"GHSA-c8v6-786g-vjx6","summary":"json-jwt allows bypass of identity checks via a sign/encryption confusion attack","details":"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.","aliases":["CVE-2023-51774"],"modified":"2026-07-17T21:08:56.666539345Z","published":"2024-02-29T03:33:14Z","database_specific":{"nvd_published_at":"2024-02-29T01:42:05Z","cwe_ids":[],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-03-01T16:56:21Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-51774"},{"type":"WEB","url":"https://github.com/nov/json-jwt/issues/120"},{"type":"WEB","url":"https://github.com/nov/json-jwt/issues/121"},{"type":"WEB","url":"https://github.com/nov/json-jwt/commit/593ea8bcaf2629048bad8c036191f2da0a2e713c"},{"type":"WEB","url":"https://github.com/nov/json-jwt/commit/9c4d842a9465bd7960570ca326c3de79b4abc9d0"},{"type":"WEB","url":"https://github.com/P3ngu1nW/CVE_Request/blob/main/novjson-jwt.md"},{"type":"PACKAGE","url":"https://github.com/nov/json-jwt"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/json-jwt/CVE-2023-51774.yml"}],"affected":[{"package":{"name":"json-jwt","ecosystem":"RubyGems","purl":"pkg:gem/json-jwt"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.16.0"},{"fixed":"1.16.6"}]}],"versions":["1.16.0","1.16.1","1.16.2","1.16.3","1.16.4","1.16.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-c8v6-786g-vjx6/GHSA-c8v6-786g-vjx6.json"}},{"package":{"name":"json-jwt","ecosystem":"RubyGems","purl":"pkg:gem/json-jwt"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.15.3.1"}]}],"versions":["0.0.0","0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.2.0","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.6.0","0.6.1","0.7.0","0.7.0.alpha","0.7.0.alpha2","0.7.1","0.8.0","0.8.1","1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.13.0","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","1.7.0","1.7.1","1.7.2","1.8.0","1.8.1","1.8.1.pre","1.8.2","1.8.3","1.9.0","1.9.1","1.9.2","1.9.3","1.9.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-c8v6-786g-vjx6/GHSA-c8v6-786g-vjx6.json"}}],"schema_version":"1.9.0"}