SCA: security update for github.com/zitadel/zitadel (GHSA-6mq3-xmgp-pjm5)

medium Tenable Cloud Security Plugin ID 438045

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-27840)

See Also

https://github.com/advisories/GHSA-6mq3-xmgp-pjm5

Plugin Details

Severity: Medium

ID: 438045

Version: Revision 1.10

Type: Local

Family: SCA Checks

Published: 3/2/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2026-27840

CVSS v3

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/27/2026

Vulnerability Publication Date: 2/26/2026

Reference Information

CVE: CVE-2026-27840

cwe: CWE-302