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·18 visits

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

•1 day ago•CVE-2026-107844
5.3

CVE-2026-107844: Path Traversal Vulnerability in Contao ImagesController

A path traversal vulnerability (CWE-22) in Contao CMS allows unauthenticated remote attackers to bypass directory boundary restrictions in ImagesController and access files within the project directory.

Amit Schendel
Amit Schendel
8 views•5 min read
•1 day ago•CVE-2026-107848
3.5

CVE-2026-107848: Cross-Site Request Forgery (CSRF) in Contao Backend Actions via GET Requests

Contao Open Source CMS versions 4.0.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11 contain a Cross-Site Request Forgery (CSRF) vulnerability in backend parameter handling. The `RequestTokenListener` component validates anti-CSRF tokens solely for HTTP POST requests, while GET-based declarative guards run only when an `act` parameter is present in the query string. Consequently, custom backend actions dispatched via alternative parameters such as `key=` can execute without CSRF token verification when triggered by an authenticated user.

Amit Schendel
Amit Schendel
7 views•5 min read
•1 day ago•CVE-2026-107843
5.3

CVE-2026-107843: Unthrottled Activation Email Resend and Account Enumeration in Contao CMS

Contao CMS versions 4.1.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11 fail to validate form submission tokens and enforce rate limiting when processing activation email resend requests via HTTP POST, enabling resource exhaustion and account state enumeration.

Amit Schendel
Amit Schendel
8 views•4 min read
•1 day ago•CVE-2026-107842
5.3

CVE-2026-107842: Information Disclosure via Stale Indexing in Contao Search Module

An information disclosure vulnerability in Contao CMS allows unauthenticated site visitors to view protected page titles, URLs, and text excerpts through search queries when protected page indexing is disabled after previously being enabled.

Amit Schendel
Amit Schendel
10 views•4 min read
•1 day ago•GHSA-G38J-7V97-X298
6.5

GHSA-G38J-7V97-X298: Missing Authorization Check in Vikunja CalDAV Task Relation Creation

In Vikunja prior to version 2.6.0, relation creation via the CalDAV endpoint fails to invoke the TaskRelation.CanCreate authorization check. This missing access control allows an authenticated user to establish unauthorized relationships and perform write operations against any task, provided its unique identifier (UID) is known.

Alon Barad
Alon Barad
12 views•5 min read
•1 day ago•GHSA-3HC7-R24J-RPWC
6.8

GHSA-3hc7-r24j-rpwc: Cross-Project Task Disclosure via Subtask Expansion in Vikunja

A cross-project information disclosure vulnerability in Vikunja allows authenticated users with read access to one project to view private task details from unauthorized projects via subtask expansion parameters.

Alon Barad
Alon Barad
9 views•5 min read