CVE-2026-56232

Capgo - Subkey Scope Bypass in middlewareKey via x-limited-key-id Header

Published Jun 24, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability resides in Capgo’s middlewareKey function, where subkeys transmitted via the x-limited-key-id header are not correctly validated against limited_to_orgs and limited_to_apps constraints. This omission allows an attacker to reference a subkey that they control, causing all downstream requests to be processed with the parent key rather than the intended scoped subkey. The result is a loss of confidentiality and integrity for any data protected by the parent key, and can lead to unauthorized data access or manipulation across the application. Cybersecurity weakness identified as CWE‑863, a subroutine authorization issue.

Affected Systems

Capgo server application versions prior to 12.128.2 are vulnerable. The issue affects the Capgo product, specifically its middleware handling of API key scoping. Users deploying Capgo 12.128.1 or earlier on any configuration that accepts external HTTP requests are at risk.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, suggesting significant potential impact if exploited. The EPSS score is not available, so the current estimate of exploitation probability is unknown, but the vulnerability’s nature implies a direct, in‑band exploitation possible by sending crafted HTTP headers. The issue is not listed in the CISA KEV catalog, yet its high CVSS implies that organizations should treat it as a critical flaw. Attackers would likely use standard HTTP clients to send the x-limited-key-id header, bypassing you authorization controls without additional privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Capgo to version 12.128.2 or newer to include the fixed enforcement of subkey scopes.
  • Verify that the middlewareKey function now rejects any x-limited-key-id header values that do not belong to the authenticated organization or application.
  • Restrict or eliminate the use of the x-limited-key-id header in production deployments, ensuring that only system‑controlled subkeys are generated and used internally.

Generated by OpenCVE AI on June 24, 2026 at 13:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Cap-go
Cap-go cap-go
Vendors & Products Cap-go
Cap-go cap-go
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Capgo - Subkey Scope Bypass in middlewareKey via x-limited-key-id Header
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jun 24, 2026, 12:14 PM
Reserved
Jun 19, 2026, 9:50 PM
Status
Deferred
Published
Jun 24, 2026, 1:16 PM
Modified
Oct 25, 2026, 11:10 PM