CVE-2026-27840
ZITADEL's truncated opaque tokens are still valid
Also known as GHSA-6mq3-xmgp-pjm5, GO-2026-4573
Mitigation
- Upgrade github.com/zitadel/zitadel to one of 4.11.0, 3.4.7, 1.80.0-v2.20.0.20260216092519-feab8e1fa371 (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/zitadel/zitadel (>= 4.0.0, < 4.11.0)
- Anyone running zitadel >= 4.0.0, < 4.11.0; >= 3.0.0, < 3.4.7; >= 2.31.0, <= 2.71.19
Vulnerability facts
- Affected
- github.com/zitadel/zitadel >= 4.0.0, < 4.11.0
- Fixed in
- 4.11.0, 3.4.7, 1.80.0-v2.20.0.20260216092519-feab8e1fa371
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
- CWE
- CWE-302
- Modified
Description
ZITADEL is an open source identity management platform. Starting in version 2.31.0 and prior to versions 3.4.7 and 4.11.0, opaque OIDC access tokens in the v2 format truncated to 80 characters are still considered valid. Zitadel uses a symmetric AES encryption for opaque tokens. The cleartext payload is a concatenation of a couple of identifiers, such as a token ID and user ID. Internally Zitadel has 2 different versions of token payloads. v1 tokens are no longer created, but are still verified as to not invalidate existing session after upgrade. The cleartext payload has a format of `<token_id>:<user_id>`. v2 tokens distinguished further where the `token_id` is of the format `v2_<oidc_session_id>-at_<access_token_id>`. V1 token authZ/N session data is retrieved from the database using the (simple) `token_id` value and `user_id` value. The `user_id` (called `subject` in some parts of our code) was used as being the trusted user ID. V2 token authZ/N session data is retrieved from the database using the `oidc_session_id` and `access_token_id` and in this case the `user_id` from the token is ignored and taken from the session data in the database. By truncating the token to 80 chars, the user_id is now missing from the cleartext of the v2 token. The back-end still accepts this for above reasons. This issue is not considered exploitable, but may look awkward when reproduced. The patch in versions 4.11.0 and 3.4.7 resolves the issue by verifying the `user_id` from the token against the session data from the database. No known workarounds are available.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/zitadel/zitadel | >= 4.0.0, < 4.11.0 | 4.11.0, 3.4.7, 1.80.0-v2.20.0.20260216092519-feab8e1fa371 | osv |
| zitadel | >= 4.0.0, < 4.11.0; >= 3.0.0, < 3.4.7; >= 2.31.0, <= 2.71.19 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-27840. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-27840.md Affected: github.com/zitadel/zitadel >= 4.0.0, < 4.11.0 Fixed in: 4.11.0, 3.4.7, 1.80.0-v2.20.0.20260216092519-feab8e1fa371 Steps: 1. Search this machine and project for github.com/zitadel/zitadel (Go), zitadel: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-27840 being exploited?
There is no confirmed exploitation: CVE-2026-27840 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-27840?
Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-27840?
github.com/zitadel/zitadel >= 4.0.0, < 4.11.0.
Is there a fix for CVE-2026-27840?
Yes. Fixed in 4.11.0, 3.4.7, 1.80.0-v2.20.0.20260216092519-feab8e1fa371. Upgrade github.com/zitadel/zitadel to one of 4.11.0, 3.4.7, 1.80.0-v2.20.0.20260216092519-feab8e1fa371 (or later in the same release line).
How do I check if I'm affected by CVE-2026-27840?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.