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

- Severity: High 8.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-25T00:00:00.000Z
- Modified: 2026-09-10T03:50:06.209Z
- Also known as: GHSA-c8v6-786g-vjx6
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- json-jwt_project json-jwt: 1.16.3
- json-jwt (RubyGems): from 1.16.0 before 1.16.6; before 1.15.3.1

## Every score

- CISA-ADP: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: rating Medium

## 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)

## Sources

- CVE List: [CVE-2023-51774](https://www.cve.org/CVERecord?id=CVE-2023-51774), CVE Terms of Use, modified 2024-08-26
- GitHub Advisory Database: [GHSA-c8v6-786g-vjx6](https://github.com/advisories/GHSA-c8v6-786g-vjx6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-51774](https://nvd.nist.gov/vuln/detail/CVE-2023-51774), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-51774 · Whole record: https://cve.day/CVE-2023-51774.json · Rebuilt by cve.day 2026-11-25T22:58:33.113Z
