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

CVE-2026-100620: Capgo CLI Privilege Escalation Vulnerability

CVE-2026-100620 is a privilege escalation flaw in Capgo CLI that grants excessive Google Play Console permissions to service accounts. This post explains its impact, affected versions, and mitigation steps.

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

CVE-2026-100620 affects the Capgo command-line interface (CLI) distributed as the npm package @capgo/cli through version 7.98.2. The Android onboarding flow creates a Google Play service account with the account-wide CAN_MANAGE_DRAFT_APPS_GLOBAL permission, contradicting the user-facing claim that the service account is scoped to a single confirmed application with release-only rights. Anyone who obtains the generated PLAY_CONFIG_JSON service account key can create, edit, and delete draft apps across the entire Google Play developer account. The weakness is classified under [CWE-269: Improper Privilege Management]. No patched version was available at the time of publication.

Critical Impact

Attackers in possession of the Capgo-generated Play service account key gain developer-account-wide draft app management, far exceeding the single-app release scope presented to users.

Affected Products

  • Capgo CLI (@capgo/cli npm package) versions through 7.98.2
  • Google Play service accounts provisioned via the Capgo Android onboarding flow (Google OAuth path)
  • Any CI/CD system or developer workstation storing the resulting PLAY_CONFIG_JSON key

Discovery Timeline

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

Technical Details for CVE-2026-100620

Vulnerability Analysis

The Capgo CLI automates onboarding to Google Play by invoking the Android Publisher API to create a service account and bind it to the developer's project. During this flow, the CLI issues a User.create request that sets developerAccountPermissions to include CAN_MANAGE_DRAFT_APPS_GLOBAL. This grant operates at the Play Console account level rather than at the app level. The onboarding UI tells the operator that the service account will only be invited into the confirmed application with release-only permissions, creating a mismatch between stated and actual authorization.

The result is an insecure default that over-provisions a long-lived credential. Because the key material is written to disk as PLAY_CONFIG_JSON and typically propagates into CI secrets, any compromise of that storage extends to every draft app under the developer account. The impact is limited to draft app management (create, edit, delete) rather than published app takeover, which is reflected in the medium severity rating.

Root Cause

The root cause is improper privilege management ([CWE-269]) in the service account provisioning logic. The CLI hardcodes the account-wide CAN_MANAGE_DRAFT_APPS_GLOBAL permission in the developerAccountPermissions field of the Android Publisher API User.create call. The implementation does not use app-scoped grants[] entries, which would restrict the service account to a single package name.

Attack Vector

Exploitation requires the attacker to obtain the generated PLAY_CONFIG_JSON service account key. Common exposure paths include leaked CI/CD secrets, compromised developer workstations, source control misconfigurations, and insider access. Once the key is held, the attacker authenticates to the Google Play Android Publisher API and performs draft app operations across the entire developer account without any additional privilege escalation step. See the GitHub Security Advisory GHSA-wf94-285x-4cgj and the VulnCheck Advisory on Capgo CLI for additional technical context.

Detection Methods for CVE-2026-100620

Indicators of Compromise

  • Google Play Console audit log entries showing draft app creation, modification, or deletion performed by a Capgo-provisioned service account against packages the service account was not expected to manage.
  • Presence of a PLAY_CONFIG_JSON service account key whose associated Play Console user shows CAN_MANAGE_DRAFT_APPS_GLOBAL under account permissions.
  • Android Publisher API calls originating from unexpected IP addresses or CI runners using the Capgo-generated key.

Detection Strategies

  • Enumerate all Play Console users and filter for service accounts carrying CAN_MANAGE_DRAFT_APPS_GLOBAL in developerAccountPermissions. Any Capgo-provisioned account is in scope.
  • Review @capgo/cli installations across build systems and developer machines; flag versions at or below 7.98.2.
  • Correlate Android Publisher API usage logs with the inventory of expected package names to surface cross-app activity.

Monitoring Recommendations

  • Alert on any new service account grant that includes account-wide Play Console permissions.
  • Track reads of files named PLAY_CONFIG_JSON or equivalent secret paths within CI runners and developer endpoints.
  • Monitor Google Workspace and Google Cloud audit logs for Android Publisher API edits.insert or apps draft operations outside normal release windows.

How to Mitigate CVE-2026-100620

Immediate Actions Required

  • Revoke and rotate any PLAY_CONFIG_JSON service account key generated by Capgo CLI version 7.98.2 or earlier.
  • Manually edit the service account in the Google Play Console to remove CAN_MANAGE_DRAFT_APPS_GLOBAL and apply app-scoped, release-only permissions on the intended package.
  • Audit draft apps and recent Play Console activity for unauthorized create, edit, or delete operations.

Patch Information

No patched version of @capgo/cli was available at the time of publication. Track the GitHub Security Advisory GHSA-wf94-285x-4cgj for updates and apply a fixed release as soon as the maintainer publishes one.

Workarounds

  • Provision the Google Play service account manually using app-level grants rather than relying on the CLI onboarding flow.
  • Store PLAY_CONFIG_JSON only in a hardened secrets manager and restrict read access to the specific build job that needs it.
  • Enforce short credential lifetimes and periodic rotation for any service account used to publish Android releases.
bash
# Configuration example: remove account-wide draft permissions after provisioning
# Review the service account grants, then update them to app-scoped release only
# via the Google Play Console UI or the Android Publisher API.
# Reference: https://developers.google.com/android-publisher/api-ref/rest/v3/users

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.