Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-53939: CWE-321: Use of Hard-coded Cryptographic Key in OpenIDC cjose

0
Critical
VulnerabilityCVE-2026-53939cvecve-2026-53939cwe-321cwe-330
Published: 09/08/2026 (09/08/2026, 23:36:13 UTC)
Source: CVE Database V5
Vendor/Project: OpenIDC
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

GitHub Actionsmore threats →ai
openidc/cjose
pkg:github/openidc/cjose
Affected versions
<0.6.2.6

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

AILast updated: 09/09/2026, 11:08:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses