CVE-2023-51774
HIGH 8.4CVSS 3.1json-jwt allows bypass of identity checks via a sign/encryption confusion attack
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.
- Published
- 29 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-284
- Also known as
- GHSA-c8v6-786g-vjx6
- Sources
- NVDJSONOSV GHSA-c8v6-786g-vjx6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | json-jwt_project | json-jwtcpe:2.3:a:json-jwt_project:json-jwt:1.16.3:*:*:*:*:ruby:*:* |
= 1.16.3 | |
| OSV | RubyGems | json-jwt | >= 1.16.0, < 1.16.6 | 1.16.6 |
| OSV | RubyGems | json-jwt | < 1.15.3.1 | 1.15.3.1 |
References
- https://github.com/P3ngu1nW/CVE_Request/blob/main/novjson-jwt.md · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-51774 · ADVISORY
- https://github.com/nov/json-jwt/issues/120 · WEB
- https://github.com/nov/json-jwt/issues/121 · WEB
- https://github.com/nov/json-jwt/commit/593ea8bcaf2629048bad8c036191f2da0a2e713c · WEB
- https://github.com/nov/json-jwt/commit/9c4d842a9465bd7960570ca326c3de79b4abc9d0 · WEB
- https://github.com/nov/json-jwt · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/json-jwt/CVE-2023-51774.yml · WEB
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 29 Feb 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Feb 2024)