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

CVE-2026-100629: Capgo Backend Privilege Escalation Flaw

CVE-2026-100629 is a privilege escalation flaw in Capgo backend allowing org_admin users to demote org_super_admin accounts. This article covers the technical details, affected versions, security impact, and mitigation strategies.

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-100629 Overview

CVE-2026-100629 is an authorization flaw in the Capgo backend (capgo.app) affecting versions prior to 12.127.5. The vulnerability resides in the PATCH /private/role_bindings/:binding_id endpoint, which fails to validate the rank of the role currently bound to the target binding. An authenticated user holding org_admin (rank 90) can modify an org_super_admin binding (rank 95) and reassign it to a lower-privileged role such as org_member (rank 75). The flaw is tracked under CWE-863: Incorrect Authorization.

Critical Impact

An authenticated org_admin can demote every org_super_admin in an organization, leaving it with no super administrator and effectively taking exclusive control of privileged operations.

Affected Products

  • Capgo backend (capgo.app) versions prior to 12.127.5
  • Deployments relying on the role_bindings PATCH endpoint for role management
  • Organizations using the prevent_last_super_admin_binding_delete database trigger as a safeguard

Discovery Timeline

  • 2026-09-26 - CVE-2026-100629 published to the National Vulnerability Database (NVD)
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-100629

Vulnerability Analysis

The vulnerability stems from inconsistent authorization logic between the DELETE and PATCH handlers for role bindings. The DELETE handler verifies both the caller's rank against the target binding's current role and the newly assigned role, preventing low-ranked users from removing higher-ranked bindings. The PATCH handler only validates that the caller's rank meets or exceeds the newly assigned role's rank. It omits the check against the existing bound role's rank.

This asymmetry allows an authenticated attacker with the org_admin role (rank 90) to issue a PATCH request against an org_super_admin binding (rank 95). The handler accepts the request because the target role, such as org_member (rank 75), is below the caller's own rank. The database-level safeguard, the prevent_last_super_admin_binding_delete trigger, fires only on BEFORE DELETE operations. It does not execute on UPDATE, so the attacker can demote the last remaining super administrator without any backstop.

Root Cause

The PATCH handler implements a partial authorization check that compares only the caller's rank against the newly assigned role. It omits the symmetrical check against the currently bound role's rank. The database trigger designed to preserve at least one org_super_admin is scoped to DELETE operations and provides no protection against UPDATE-based demotions.

Attack Vector

Exploitation requires an authenticated account with the org_admin role within the target organization. The attacker sends a crafted PATCH request to /private/role_bindings/:binding_id, specifying the binding identifier of an org_super_admin and a lower-ranked role in the request body. Repeating the operation against every super administrator binding leaves the organization without any super admin. The vulnerability is network-accessible and requires no user interaction. Full technical details are available in the GitHub Security Advisory GHSA-54mj-q77q-xwx5 and the VulnCheck Privilege Escalation Advisory.

Detection Methods for CVE-2026-100629

Indicators of Compromise

  • PATCH requests to /private/role_bindings/:binding_id originating from accounts holding only org_admin where the target binding previously held org_super_admin.
  • Audit log entries showing role transitions from org_super_admin to lower-ranked roles such as org_member without a corresponding org_super_admin approval event.
  • Organizations with zero remaining org_super_admin bindings following recent role-binding modifications.

Detection Strategies

  • Query the role_bindings table history for UPDATE events that reduced the rank of a binding, correlating the actor's role at the time of the change.
  • Alert on any PATCH call to the role-bindings endpoint where the actor rank is lower than the current bound role rank.
  • Monitor for sequences of consecutive role changes affecting multiple super admin bindings within short time windows.

Monitoring Recommendations

  • Enable verbose logging on the /private/role_bindings endpoints and forward events to a centralized logging platform for retention and analysis.
  • Track the count of active org_super_admin bindings per organization and alert when the count reaches zero.
  • Correlate authentication logs with role-binding changes to identify compromised org_admin accounts.

How to Mitigate CVE-2026-100629

Immediate Actions Required

  • Upgrade the Capgo backend to version 12.127.5 or later, which fixes the authorization check in the PATCH handler.
  • Audit all recent PATCH operations against /private/role_bindings/:binding_id for unauthorized demotions and restore legitimate org_super_admin bindings.
  • Review the current roster of org_admin and org_super_admin accounts and revoke access for any unexpected or dormant principals.

Patch Information

The maintainers fixed the issue in Capgo backend version 12.127.5. The patched PATCH handler now validates the caller's rank against the currently bound role in addition to the newly assigned role, matching the behavior of the DELETE handler. Refer to the GitHub Security Advisory GHSA-54mj-q77q-xwx5 for release details.

Workarounds

  • Extend the prevent_last_super_admin_binding_delete database trigger to also fire BEFORE UPDATE on the role_bindings table, blocking demotions that would remove the final super administrator.
  • Add a server-side guard that rejects PATCH requests when the caller's rank is less than or equal to the current bound role's rank.
  • Temporarily restrict the org_admin role from modifying bindings tied to higher-ranked roles via an application-level policy until the patch is deployed.
bash
# Verify installed Capgo backend version and upgrade if below 12.127.5
npm list @capgo/capgo-backend
npm install @capgo/capgo-backend@^12.127.5

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.