All vulnerabilities

Servers and applications

CVE-2026-27840

Truncated opaque tokens are still valid

Severity
Medium 4.3
Published
25 Feb 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.4.7, 4.11.0
Exploit chance
0.2% in the next 30 daysHigher than 5% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-302
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Also known as
GHSA-6mq3-xmgp-pjm5
Sources
NVD, Project advisories (GitHub)

Description

Opaque OIDC access tokens in 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 :. v2 tokens distinguished further where the token_id is of the format v2_-at_. This is an example of such a cleartext: V2_354201447279099906-at_354201447279165442:354201364702363650

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.

From zitadel/zitadel's security advisory. Shortened; the full text is there.

Workarounds

The recommended solution is to update ZITADEL to a patched version.

Workarounds as given by zitadel/zitadel's security advisory.

Affected software

SoftwareAffected versions
ZITADELServers and applications · cpe:a:zitadel:zitadel
  • From 2.31.0 up to 2.71.19
  • From 3.0.0 before 3.4.7
  • From 4.0.0 before 4.11.0
ZITADELServers and applications · github:zitadel/zitadel
  • From 3.0.0 before 3.4.7
  • From 4.0.0 before 4.11.0

About ZITADEL

ZITADEL - Identity infrastructure, simplified for you.

From its GitHub repository.
GitHub stars
15,585GitHub, 15 Nov 2026
Forks
1,432GitHub, 15 Nov 2026
Latest release
v4.20.3GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
16 Mar 2020GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-27840
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-27840
  • GitHub Advisory Database https://github.com/advisories/GHSA-6mq3-xmgp-pjm5
  • github.com https://github.com/zitadel/zitadel/security/advisories/GHSA-6mq3-xmgp-pjm5