Skip to main content
Vulnerability Database/CVE-2026-85057

CVE-2026-85057: ZITADEL Privilege Escalation Vulnerability

CVE-2026-85057 is a privilege escalation flaw in ZITADEL that allows organization administrators to access sensitive files and escalate to instance admin. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-85057 Overview

ZITADEL, an open source identity management platform, contains an access control weakness in Actions V1. From version 3.0.0 up to 3.4.13 and 4.16.1, ZITADEL enables the goja Node-compatible require() registry without restricting its filesystem source loader. An organization Action author holding ORG_OWNER, org.action.write, and org.flow.write permissions can execute JavaScript at OIDC, SAML, and login-flow trigger points. The code can load any file readable by the ZITADEL server process, exposing mounted configuration and secrets. The issue is tracked as [CWE-284: Improper Access Control] and fixed in versions 3.4.13 and 4.16.1.

Critical Impact

An organization administrator can read server-side files, exfiltrate credentials referenced by ZITADEL_FIRSTINSTANCE_LOGINCLIENTPATPATH or ZITADEL_FIRSTINSTANCE_MACHINEKEYPATH, and escalate to instance administrator using recovered bootstrap credentials.

Affected Products

  • ZITADEL versions 3.0.0 through 3.4.12
  • ZITADEL 4.x releases prior to 4.16.1
  • Deployments with Actions V1 enabled

Discovery Timeline

  • 2026-09-24 - CVE CVE-2026-85057 published to NVD
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-85057

Vulnerability Analysis

ZITADEL Actions V1 embeds the goja JavaScript runtime to execute organization-defined scripts at identity events such as OIDC token issuance, SAML assertions, and login flows. The runtime was configured with the Node-compatible require() registry, but the default filesystem source loader remained active. This allowed Action scripts to call require() against arbitrary paths on disk. Any file readable by the ZITADEL process became reachable from a tenant-level script. The scripts run within the ZITADEL server's process context, so file reads inherit the OS-level permissions of that process.

The impact extends beyond simple file disclosure. Mounted secrets such as the first-instance login client Personal Access Token (PAT) and machine key files contain bootstrap credentials with instance-wide authority. Recovery of those files converts an organization administrator into an instance administrator, breaking the tenant isolation boundary that ZITADEL enforces. The advisory notes that direct host command execution is not established.

Root Cause

The root cause is missing restriction on the goja require() source loader inside internal/actions/actions.go. The registry was initialized without disabling file-based module loading, so caller-supplied paths were resolved against the host filesystem rather than a sandboxed module set.

Attack Vector

An authenticated principal with ORG_OWNER plus org.action.write and org.flow.write writes an Action script that calls require() on a target path such as a mounted secret file. The script registers against an OIDC, SAML, or login-flow trigger. When the trigger fires, ZITADEL executes the script and returns file contents through logging, action output, or custom claims. The attacker then reuses recovered bootstrap credentials against the instance API.

go
// Patch excerpt from internal/actions/actions.go
// Introduces a sentinel error used to reject file-based module loads.
	HTTP HTTPConfig
}

-var ErrHalt = errors.New("interrupt")
+var (
+	ErrHalt     = errors.New("interrupt")
+	ErrFileLoad = errors.New("file-based modules are disabled")
+)

type jsAction func(fields, fields) error

Source: zitadel/zitadel commit afe1086

Detection Methods for CVE-2026-85057

Indicators of Compromise

  • Action scripts that reference require( with absolute paths or paths pointing outside expected module directories.
  • Action execution logs showing reads of secret files such as those at ZITADEL_FIRSTINSTANCE_LOGINCLIENTPATPATH or ZITADEL_FIRSTINSTANCE_MACHINEKEYPATH.
  • API activity from instance-level service accounts shortly after unrelated organization administrator activity.

Detection Strategies

  • Audit all Actions V1 scripts across every organization and flag any use of require() with filesystem paths.
  • Review ZITADEL audit events for recent org.action.write and org.flow.write operations by non-standard ORG_OWNER accounts.
  • Correlate Action trigger events (OIDC, SAML, login flow) with outbound traffic patterns that could indicate exfiltration of file contents through claims or logs.

Monitoring Recommendations

  • Alert on new or modified Actions scripts containing the substrings require("/ or require('/ until the upgrade is confirmed.
  • Monitor filesystem access on the ZITADEL host for reads of secret paths by the ZITADEL process initiated during Action execution windows.
  • Track creation of new PATs or machine keys at the instance level and reconcile against change control records.

How to Mitigate CVE-2026-85057

Immediate Actions Required

  • Upgrade ZITADEL to version 3.4.13 or 4.16.1 without delay.
  • Rotate any secrets that were mounted or referenced through ZITADEL_FIRSTINSTANCE_LOGINCLIENTPATPATH and ZITADEL_FIRSTINSTANCE_MACHINEKEYPATH.
  • Review and prune Actions V1 scripts across all organizations and revoke unused org.action.write and org.flow.write grants.

Patch Information

The fix disables file-based module loading in the goja require() registry. See the GitHub Security Advisory GHSA-fgmf-7rf8-m6vf, the fixed ZITADEL Release v3.4.13, and ZITADEL Release v4.16.1. The relevant code changes are in commit afe1086, commit baf6ed5, and commit e28d6bc.

Workarounds

  • Restrict ORG_OWNER, org.action.write, and org.flow.write to a minimal, trusted set of operators until patching completes.
  • Remove or disable all Actions V1 scripts that are not strictly required for production flows.
  • Run the ZITADEL process under a service account whose filesystem view excludes mounted secrets, and prefer runtime secret injection over file mounts where feasible.
bash
# Verify installed ZITADEL version and upgrade
zitadel --version

# Container image upgrade examples
docker pull ghcr.io/zitadel/zitadel:v3.4.13
docker pull ghcr.io/zitadel/zitadel:v4.16.1

# Kubernetes rollout example
kubectl set image deployment/zitadel \
  zitadel=ghcr.io/zitadel/zitadel:v4.16.1 -n zitadel
kubectl rollout status deployment/zitadel -n zitadel

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.