CVE-2026-56232: Capgo API Key Bypass Vulnerability – Authentication Bypass in Subkey Validation
Capgo, a cloud deployment platform, contains a critical authentication bypass vulnerability in how it validates API key permissions. The vulnerability allows authenticated users to circumvent restrictions placed on limited-scope API keys (subkeys) by manipulating the x-limited-key-id header. Instead of enforcing the intended scope constraints, the application defaults to using the unrestricted parent key for all subsequent operations. This means an attacker with a scoped subkey can effectively gain the full permissions of their parent account, potentially accessing or modifying any organization or application they shouldn't have access to.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-863
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-06-25
NVD description (verbatim)
Capgo before 12.128.2 fails to enforce limited_to_orgs and limited_to_apps constraints on subkeys provided via x-limited-key-id header in middlewareKey function. Attackers can bypass subkey scope restrictions by referencing their own subkeys, causing all downstream route handlers to use the unrestricted parent key instead of the scoped subkey.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in Capgo's middlewareKey function, which processes the x-limited-key-id header to identify which API key should be used for a request. The function fails to properly validate that the referenced subkey actually belongs to the requesting user and that its assigned constraints (limited_to_orgs and limited_to_apps) are enforced. When a subkey reference is invalid or tampered with, the middleware falls back to using the parent key without restriction, creating a privilege escalation path. This affects all downstream route handlers that depend on proper key scoping. The issue is present in versions prior to 12.128.2.
Business impact
Organizations using Capgo for CI/CD deployments face significant operational risk. An insider or compromised low-privilege API key could escalate to full account control, enabling unauthorized application deployments, data exfiltration, or sabotage across multiple projects or organizations. This undermines the security model of delegated, scoped API access—a foundational practice for multi-team deployments. Customers relying on API key segmentation for access control must assume that boundary has been breached until patched.
Affected systems
Capgo versions prior to 12.128.2 are affected. The vulnerability requires an authenticated user (PR:L) and impacts the API key validation mechanism used across all HTTP routes that depend on proper subkey enforcement. Any deployment or integration relying on scoped API keys is at risk.
Exploitability
Exploitation requires an authenticated account with at least one API key or subkey (low privilege requirement). The attacker does not need user interaction (UI:N) and can exploit this over the network (AV:N) with minimal complexity (AC:L). Proof of exploitation involves crafting a request with a manipulated x-limited-key-id header referencing an attacker-controlled subkey, then observing that the request is processed with parent key permissions. The attack is straightforward once the vulnerability is understood.
Remediation
Upgrade to Capgo version 12.128.2 or later immediately. This patch version enforces validation of limited_to_orgs and limited_to_apps constraints on subkeys, preventing the privilege escalation. Organizations should also audit their API key usage logs between the vulnerability's public disclosure (June 24, 2026) and patch deployment to identify any suspicious subkey references or elevated access patterns.
Patch guidance
Apply the 12.128.2 release as soon as possible—this is a high-severity vulnerability in a privileged code path. Verify the patch by reviewing the release notes and confirming the middlewareKey function now properly validates subkey ownership and constraints before honoring the x-limited-key-id header. After patching, confirm that scoped API keys are once again properly restricted in your testing environment before deploying to production.
Detection guidance
Monitor authentication logs and API audit trails for x-limited-key-id headers that reference subkeys, especially in patterns where a subkey reference is followed by operations outside its declared scope (limited_to_orgs or limited_to_apps). Look for requests where subkey IDs don't match the requesting user's actual subkey inventory. If possible, instrument the middlewareKey function to log when a fallback to parent key occurs due to validation failure. Compare API activity before and after the vulnerability window to identify anomalous access patterns.
Why prioritize this
This vulnerability scores CVSS 8.8 (HIGH) due to the combination of network accessibility, low privilege barrier, and high impact across confidentiality, integrity, and availability. The bug is in a critical authentication enforcement point, making it a foundational security failure rather than a niche edge case. Although it is not yet in the CISA KEV catalog, the simplicity of exploitation and the sensitivity of API key management warrant immediate patching. Any organization using Capgo should treat this as urgent.
Risk score, explained
The CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H score reflects: (1) Network-accessible attack vector with low complexity; (2) Low privilege requirement (any authenticated user); (3) No user interaction needed; (4) Unrestricted scope within the user's authorization boundary; (5) High impact on confidentiality (unauthorized access to restricted orgs/apps), integrity (ability to modify or deploy to restricted environments), and availability (potential for disruptive deployments). The HIGH severity is appropriate for a privilege escalation flaw in API key validation.
Frequently asked questions
Can an unauthenticated attacker exploit this vulnerability?
No. The vulnerability requires PR:L (low privilege), meaning the attacker must already have a valid Capgo account with at least one API key or subkey. However, the barrier is low—any team member with delegated API key access could potentially escalate.
What should I do if my subkeys don't appear to be working correctly after upgrading?
Upgrading to 12.128.2 may reveal previously undetected policy violations if your code was inadvertently relying on the fallback-to-parent-key behavior. Review your API key assignments and ensure each subkey's limited_to_orgs and limited_to_apps settings match your intended deployment scopes. Contact Capgo support if constraints appear overly restrictive.
Does this vulnerability affect older versions of Capgo, or only recent ones?
The vulnerability affects all versions before 12.128.2. If you are on any older release, you are exposed. The specific introduction date is not disclosed, but best practice is to assume all pre-12.128.2 versions are vulnerable and upgrade without delay.
Will patching this vulnerability break my existing API integrations?
Patching should not break legitimate integrations, but may reject requests that were previously succeeding due to the fallback behavior. If your integration relies on subkeys, verify that each subkey's declared constraints (orgs and apps) match what your automation actually needs. Overly restrictive subkeys may need to be reconfigured post-patch.
This analysis is provided for informational purposes and reflects publicly available information as of June 2026. No exploit code or weaponized proof-of-concept is provided. Organizations should verify patch availability and applicability to their environment with Capgo vendor advisories and release notes. Patch dates, version numbers, and technical details should be cross-referenced with official Capgo documentation. SEC.co and its authors assume no liability for damage resulting from the application or misapplication of this guidance. Source: NVD (public-domain), retrieved 2026-07-30. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2016-20075HIGHWordPress Ultimate Product Catalog 3.8.6 Arbitrary File Upload (CVSS 8.8)
- CVE-2025-14774HIGHABB T-MAC Plus Denial-of-Service Vulnerability (CVSS 7.4)
- CVE-2025-32348HIGHAndroid Local Privilege Escalation via Missing Permission Check
- CVE-2026-0272HIGHPalo Alto PAN-OS Privilege Escalation Vulnerability (PA-Series, VM-Series, Panorama)
- CVE-2026-21031HIGHAppBlock Authorization Flaw in Samsung Android—Risk & Patch Guidance
- CVE-2026-24724HIGHQNAP File Station 6 Authorization Bypass (CVSS 8.1)
- CVE-2026-3514HIGHPrefect 3.6.19 Authentication Bypass via Health Check Exemptions
- CVE-2026-35482HIGHalf.io Sandbox Escape Allows Admin Command Execution