CVE-2026-53939: CWE-321: Use of Hard-coded Cryptographic Key in OpenIDC cjose
CVE-2026-53939 is a critical vulnerability in the OpenIDC cjose C library affecting versions 0.6.1 through 0.6.2.5. The flaw causes the content-encryption key (CEK) used in AES-CBC-HMAC encryption to be all zero bytes instead of randomly generated, resulting in encryption under a fixed, publicly known key. This allows anyone with access to the encrypted data to decrypt and modify it. The issue is fixed in version 0.6.2.6. Mitigations for new ciphertexts include using AES-GCM encryption, supplying a CEK directly, or avoiding the affected algorithm combinations. Data already encrypted with the zero key remains compromised and should be re-encrypted with rotated secrets.
AI Analysis
Technical Summary
OpenIDC's cjose library versions 0.6.1 through 0.6.2.5 contain a cryptographic vulnerability where the content-encryption key (CEK) for AES-CBC-HMAC algorithms (`A128CBC-HS256`, `A192CBC-HS384`, `A256CBC-HS512`) is not randomly generated but set to all zero bytes. This results in JWE tokens encrypted and authenticated under a fixed, publicly known key, allowing plaintext recovery and forgery by anyone possessing the JWE. The vulnerability is resolved in version 0.6.2.6 by generating the CEK securely with `RAND_bytes`. Until upgrading, mitigations include using AES-GCM encryption modes, using direct key management with caller-supplied CEK, or avoiding the vulnerable algorithm pair. Existing data encrypted with the zero key is compromised and requires re-encryption and secret rotation.
Potential Impact
The vulnerability allows attackers who obtain JWE tokens encrypted with the affected cjose versions and AES-CBC-HMAC algorithms to decrypt the content and forge or modify it. This compromises confidentiality and integrity of the encrypted data. There is no impact on availability. The CVSS score is 9.1 (critical), reflecting network attack vector, low complexity, no privileges or user interaction required, and high confidentiality and integrity impact.
Mitigation Recommendations
A fix is available in cjose version 0.6.2.6, which properly generates the content-encryption key using a secure random function. For new ciphertexts, until upgrading, use AES-GCM encryption modes (`A128GCM`, `A192GCM`, `A256GCM`), use `alg=dir` with a caller-supplied CEK, or avoid using cjose for JWE encryption with the affected AES-CBC-HMAC algorithm pair. Data already encrypted with the zero key remains compromised and must be re-encrypted with rotated secrets. Since this is a library, users should upgrade to the fixed version promptly.
CVE-2026-53939: CWE-321: Use of Hard-coded Cryptographic Key in OpenIDC cjose
Description
CVE-2026-53939 is a critical vulnerability in the OpenIDC cjose C library affecting versions 0.6.1 through 0.6.2.5. The flaw causes the content-encryption key (CEK) used in AES-CBC-HMAC encryption to be all zero bytes instead of randomly generated, resulting in encryption under a fixed, publicly known key. This allows anyone with access to the encrypted data to decrypt and modify it. The issue is fixed in version 0.6.2.6. Mitigations for new ciphertexts include using AES-GCM encryption, supplying a CEK directly, or avoiding the affected algorithm combinations. Data already encrypted with the zero key remains compromised and should be re-encrypted with rotated secrets.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenIDC's cjose library versions 0.6.1 through 0.6.2.5 contain a cryptographic vulnerability where the content-encryption key (CEK) for AES-CBC-HMAC algorithms (`A128CBC-HS256`, `A192CBC-HS384`, `A256CBC-HS512`) is not randomly generated but set to all zero bytes. This results in JWE tokens encrypted and authenticated under a fixed, publicly known key, allowing plaintext recovery and forgery by anyone possessing the JWE. The vulnerability is resolved in version 0.6.2.6 by generating the CEK securely with `RAND_bytes`. Until upgrading, mitigations include using AES-GCM encryption modes, using direct key management with caller-supplied CEK, or avoiding the vulnerable algorithm pair. Existing data encrypted with the zero key is compromised and requires re-encryption and secret rotation.
Potential Impact
The vulnerability allows attackers who obtain JWE tokens encrypted with the affected cjose versions and AES-CBC-HMAC algorithms to decrypt the content and forge or modify it. This compromises confidentiality and integrity of the encrypted data. There is no impact on availability. The CVSS score is 9.1 (critical), reflecting network attack vector, low complexity, no privileges or user interaction required, and high confidentiality and integrity impact.
Mitigation Recommendations
A fix is available in cjose version 0.6.2.6, which properly generates the content-encryption key using a secure random function. For new ciphertexts, until upgrading, use AES-GCM encryption modes (`A128GCM`, `A192GCM`, `A256GCM`), use `alg=dir` with a caller-supplied CEK, or avoid using cjose for JWE encryption with the affected AES-CBC-HMAC algorithm pair. Data already encrypted with the zero key remains compromised and must be re-encrypted with rotated secrets. Since this is a library, users should upgrade to the fixed version promptly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T15:46:12.318Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Is Cloud Service
- true
Threat ID: 6aa13d69acd9273b49346637
Added to database: 09/09/2026, 11:05:13 UTC
Last enriched: 09/09/2026, 11:08:36 UTC
Last updated: 09/09/2026, 13:13:52 UTC
Views: 24
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.