CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-56665

CVE-2026-56665: Logical Validation Bypass in ZITADEL External JWT Identity Provider

Alon Barad
Alon Barad
Software Engineer

Sep 12, 2026·7 min read·1 visit

Executive Summary (TL;DR)

ZITADEL failed to enforce expiration checks when incoming JWTs lacked the 'exp' claim, allowing indefinite session validity and potential hijacking.

A logical verification flaw in ZITADEL's external JWT Identity Provider validation allows attackers to bypass session expiration checks. If an incoming JWT lacks the 'exp' claim, the system skips validation entirely, creating an indefinitely valid session. This issue has been addressed in versions 3.4.12 and 4.15.2.

Vulnerability Overview

ZITADEL is an open-source identity management platform designed to orchestrate user authentication, authorization, and federation. To support federated identities, ZITADEL allows administrators to configure external Identity Providers (IdPs) that authenticate users via JSON Web Tokens (JWTs). This vulnerability, designated as CVE-2026-56665, resides within the backend logic responsible for validating these external assertions.

The specific affected component is the external JWT Identity Provider validation engine located in internal/idp/providers/jwt/session.go. This module verifies incoming cryptographic signatures and temporal claims of incoming JWTs to establish authenticated user sessions. The attack surface is exposed to any network actor capable of interacting with authentication flows governed by external JWT-based identity federation.

At its core, the vulnerability represents an instance of CWE-613: Insufficient Session Expiration. Due to a logical implementation error in evaluating temporal claims, ZITADEL failed to unconditionally enforce token lifetime restrictions. This allowed specially structured tokens to remain valid indefinitely, posing a threat to session integrity and federation boundaries.

Root Cause Analysis

In Go applications, JSON parsing libraries unmarshal missing numeric or string fields into their respective zero values. For timestamps represented by the time.Time struct, a missing JSON field defaults to the zero-value timestamp, which is January 1, year 1, 00:00:00 UTC. The underlying OpenID Connect (OIDC) library behaves similarly when temporal claims such as Expiration (exp) and Issued At (iat) are absent from a token.

Within ZITADEL's validateToken function, the validation checks for exp and iat were guarded by conditions evaluating whether the claims were non-zero. The implementation checked if !claims.GetExpiration().IsZero() and !claims.GetIssuedAt().IsZero() were true before calling the validation library. This logic assumes that a zero-value claim simply means the claim was not supplied and therefore cannot be evaluated.

However, this assumption introduces a severe validation bypass. If a trusted external Identity Provider issues a JWT without an exp claim, the claim unmarshals to the zero timestamp. The conditional statement evaluates to false, causing the engine to skip the oidc.CheckExpiration function entirely. Consequently, the application treats the token as valid because no expiration check is executed.

Code Analysis

The vulnerable implementation in ZITADEL's session.go exposed a critical structural logic flow. Below is the vulnerable code segment that illustrates how the validation checks were conditionally bypassed:

// Vulnerable Code Path
if !claims.GetExpiration().IsZero() {
	if err = oidc.CheckExpiration(claims, offset); err != nil {
		return nil, fmt.Errorf("%w: expired: %v", ErrInvalidToken, err)
	}
}
 
if !claims.GetIssuedAt().IsZero() {
	if err = oidc.CheckIssuedAt(claims, maxAge, offset); err != nil {
		return nil, fmt.Errorf("%w: %v", ErrInvalidToken, err)
	}
}

The patch resolved this logical flaw by removing the conditional wrappers entirely. By making calls to oidc.CheckExpiration and oidc.CheckIssuedAt unconditional, the OIDC library is forced to process all incoming claims regardless of whether they contain zero values. The library's internal logic will then correctly reject tokens that lack required temporal attributes. Below is the patched implementation:

@@ -92,17 +92,14 @@ func (s *Session) validateToken(ctx context.Context, token string) (*oidc.IDToke
 		return nil, fmt.Errorf("%w: invalid signature: %v", ErrInvalidToken, err)
 	}
 
-	if !claims.GetExpiration().IsZero() {
-		if err = oidc.CheckExpiration(claims, offset); err != nil {
-			return nil, fmt.Errorf("%w: expired: %v", ErrInvalidToken, err)
-		}
+	if err = oidc.CheckExpiration(claims, offset); err != nil {
+		return nil, fmt.Errorf("%w: expired: %v", ErrInvalidToken, err)
 	}
 
-	if !claims.GetIssuedAt().IsZero() {
-		if err = oidc.CheckIssuedAt(claims, maxAge, offset); err != nil {
-			return nil, fmt.Errorf("%w: %v", ErrInvalidToken, err)
-		}
+	if err = oidc.CheckIssuedAt(claims, maxAge, offset); err != nil {
+		return nil, fmt.Errorf("%w: %v", ErrInvalidToken, err)
 	}
+
 	return claims, nil
 }

The following diagram maps the execution flow of the validation logic before and after the patch:

Exploitation Methodology

To successfully exploit this vulnerability, an attacker must acquire or generate a cryptographically valid JWT from an external Identity Provider trusted by the target ZITADEL instance. The attacker must target a configuration where the external IdP or the trusted signing source does not strictly require or enforce the presence of temporal claims during token creation. This scenario is common in misconfigured private key infrastructures or developmental identity setups.

The exploitation process begins with the attacker constructing or obtaining a JWT signed by the trusted issuer's private key. Crucially, this token is formatted to exclude the exp (expiration) and iat (issued at) claims, while retaining mandatory structural elements such as the subject and signature. The attacker then initiates the authentication flow with the ZITADEL instance, supplying this custom token as the assertion.

Upon receiving the token, ZITADEL verifies the cryptographic signature against the cached JSON Web Key Set (JWKS) retrieved from the trusted provider. Because the signature is valid, the cryptographic integrity check succeeds. The logic then proceeds to the parsed claims validation. Because the temporal checks are bypassed due to the zero-value evaluation, ZITADEL establishes an authorized session. This session has no defined lifetime bounds, allowing the attacker to reuse the token or maintain persistence indefinitely.

Impact Assessment

The impact of CVE-2026-56665 is primarily associated with session persistence and security boundary evasion. An attacker possessing an expired or indefinitely valid token can bypass regular authentication lifecycles to maintain unauthorized access. This compromises the Principle of Least Privilege and undermines the session management controls expected in enterprise identity federations.

While the CVSS base score of 4.2 indicates a medium-severity issue, the actual risk is heavily dependent on the deployment architecture. If the ZITADEL instance relies on external JWT providers that lack strict claim-enforcement policies, the severity escalates. The attack complexity is rated high because the attacker must have a mechanism to obtain or sign trusted tokens that lack standard temporal claims.

This vulnerability has not been observed in active ransomware campaigns or general wild exploitation, according to EPSS and CISA KEV catalogs. However, the logical nature of the bypass makes it highly reliable once the initial requirements are satisfied. The compromised state allows read and write capabilities associated with the identity mapped from the external provider.

Remediation & Hardening

The primary remediation path is the immediate upgrade of ZITADEL to the patched versions. Administrators should deploy version 3.4.12 or higher for the v3.x release train, and version 4.15.2 or higher for the v4.x release train. These updates replace the conditional temporal checks with mandatory enforcement, causing any token lacking expiration claims to be systematically rejected.

If upgrading immediately is not feasible, administrators must implement mitigation strategies at the identity provider level. External Identity Providers trusted by ZITADEL should be hardened to enforce the absolute inclusion of exp and iat claims on all issued JWTs. Additionally, any custom token-signing services must be audited to ensure they cannot output claims-deficient tokens.

Network administrators can also employ intermediate web application firewalls or API gateways to perform schema validation. Inbound traffic destined for the federated login endpoints can be analyzed to ensure that all incoming JWT assertions contain valid, non-empty temporal elements. This provides a secondary layer of defense while preparation for the software update is finalized.

Official Patches

ZITADELGitHub Security Advisory GHSA-v77h-2w3m-94hx
ZITADELZITADEL Release v3.4.12 containing the security fix.
ZITADELZITADEL Release v4.15.2 containing the security fix.

Fix Analysis (2)

Technical Appendix

CVSS Score
4.2/ 10
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS Probability
0.27%
Top 82% most exploited

Affected Systems

ZITADEL Identity PlatformZITADEL Chainguard Images

Affected Versions Detail

Product
Affected Versions
Fixed Version
ZITADEL
ZITADEL
>= 3.0.0-rc.1, < 3.4.123.4.12
ZITADEL
ZITADEL
>= 4.0.0-rc.1, < 4.15.24.15.2
AttributeDetail
CWE IDCWE-613
Attack VectorNetwork
CVSS v3.1 Score4.2
EPSS Score0.00266 (Percentile: 18.42%)
Exploit StatusProof of Concept
CISA KEV StatusNot Listed
Affected Componentinternal/idp/providers/jwt/session.go

MITRE ATT&CK Mapping

T1556Modify Authentication Process
Credential Access
T1599Network Boundary Bridging
Defense Evasion
CWE-613
Insufficient Session Expiration

The product does not enforce or incorrectly enforces limits on how long a session can remain active, allowing attackers to reuse expired session tokens or maintain persistent unauthorized access.

Known Exploits & Detection

GitHubZITADEL Official Security Advisory with PoC test definitions.

Vulnerability Timeline

Patch developed and committed to the main branch
2026-06-15
CVE-2026-56665 formally published to the NVD
2026-07-10
GitHub Security Advisory GHSA-v77h-2w3m-94hx disclosed
2026-07-10
Mainline releases v3.4.12 and v4.15.2 published containing the fix
2026-07-10

References & Sources

  • [1]GHSA-v77h-2w3m-94hx Security Advisory
  • [2]NVD - CVE-2026-56665
  • [3]CVE Org Portal - CVE-2026-56665

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-11746
9.4

CVE-2026-11746: Use of Hard-coded ZooKeeper Replication Secret 'ch4n63m3' in Central Dogma Server

CVE-2026-11746 is a critical vulnerability in Central Dogma Server prior to version 0.84.0, where an embedded ZooKeeper replication secret silently falls back to a publicly known, hard-coded default string ('ch4n63m3'). Remote attackers with access to the replication network can authenticate as legitimate cluster peers, potentially leading to unauthorized data exposure, state manipulation, or complete cluster takeover.

Amit Schendel
Amit Schendel
0 views•6 min read
•about 3 hours ago•CVE-2026-59149
6.5

CVE-2026-59149: Sibling Directory Path Traversal in Mockoon Backend Server

CVE-2026-59149 identifies a directory traversal vulnerability in `@mockoon/commons-server`, the backend mock-server library powering the Mockoon application. The flaw occurs in the path containment validation logic used during raw file response generation. An unauthenticated attacker can exploit this weakness to retrieve arbitrary files from sibling directories sharing a common prefix with the designated static base directory.

Amit Schendel
Amit Schendel
3 views•5 min read
•about 4 hours ago•CVE-2026-59148
8.8

CVE-2026-59148: Unauthenticated Administrative API and CORS Misconfiguration in Mockoon

An in-depth analysis of CVE-2026-59148, a high-severity flaw in Mockoon where unauthenticated administrative endpoints and a wildcard Cross-Origin Resource Sharing (CORS) policy allow remote execution, state poisoning, and credential theft.

Alon Barad
Alon Barad
4 views•6 min read
•about 5 hours ago•CVE-2026-56666
4.8

CVE-2026-56666: Account Takeover via Improper Email Verification in ZITADEL Federated Identity Handler

An improper authentication vulnerability (CWE-287) in ZITADEL's external identity provider handler before version 4.15.3 allows remote attackers to perform complete account takeover. When auto-linking by email is enabled, ZITADEL verifies that the local target account has a verified email address but fails to verify if the external provider confirmed ownership of that same email. Attackers can exploit this by registering an unverified account with a victim's email address on a permissive external provider, leading to unauthorized account binding and persistent access.

Amit Schendel
Amit Schendel
2 views•7 min read
•about 6 hours ago•CVE-2026-59151
9.6

CVE-2026-59151: Cross-Tenant Account Takeover via Improper SAML Assertion Validation in Prowler

A critical authentication bypass and cross-tenant account takeover vulnerability exists in the Prowler cloud security platform due to improper validation of the SAML Assertion Consumer Service (ACS) flow. An authenticated attacker controlling a custom Identity Provider (IdP) can forge assertions targeting arbitrary user identities across distinct tenants, allowing complete unauthorized access to target tenant-scoped resources.

Amit Schendel
Amit Schendel
3 views•6 min read
•about 7 hours ago•CVE-2026-11745
8.8

CVE-2026-11745: Host Key Verification Bypass in Central Dogma Git Mirror SSH Client

An issue was identified in Central Dogma prior to version 0.84.0. The Git mirror SSH client does not verify remote host keys for git+ssh:// connections, which allows an on-path attacker to execute man-in-the-middle attacks and compromise mirrored repositories.

Amit Schendel
Amit Schendel
2 views•7 min read