Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid restricted Capgo subkey
-
DeliveryCraft HTTP request with malformed x-limited-key-id header
-
ExploitTrigger falsy/NaN evaluation in server parser
-
ExecutionBypass subkey scoping gate
-
PersistExecute request under main API key context
-
ImpactAccess or modify resources beyond subkey permissions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires possession of a valid Capgo API subkey credential for the target account. The attacker must have network access to the Capgo API endpoint and the ability to set arbitrary HTTP request headers. The bypass is triggered specifically when the x-limited-key-id header is set to a value that evaluates as falsy or NaN in the server-side parsing logic - including integer zero, a NaN-coercible string, an empty value, or by sending duplicate x-limited-key-id headers that produce an array type. Exploitation is limited to users who already hold at minimum a subkey-level credential; fully unauthenticated attackers cannot exploit this flaw. The vulnerability is only relevant in deployments where subkey scoping is in use as a permission boundary - deployments using only full main API keys are unaffected by the permission escalation but face no additional risk from this flaw. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) scores 5.3 Medium. The PR:L metric confirms exploitation requires a valid subkey credential - unauthenticated attackers cannot trigger the bypass. AC:L reflects that no complex preconditions or race conditions are needed; once a subkey is in hand, the bypass is deterministic and repeatable. The impact metrics VC:L/VI:L indicate partial confidentiality and integrity gain, consistent with a permission escalation rather than full system compromise - the attacker gains main-key scope, not OS-level access. EPSS data is not included in the available intelligence, limiting probabilistic exploitation forecasting. There is no CISA KEV listing and no POC code is referenced, which reduces immediate urgency. However, the attack is mechanically trivial for anyone already possessing a subkey credential, making insider threat or compromised-credential scenarios the primary risk vector. Organizations using Capgo's subkey model for privilege separation - such as CI/CD pipelines with scoped tokens - face the most meaningful exposure, as the entire permission isolation model is rendered ineffective by this flaw. |
| Exploit ScenarioDerived | An attacker possessing a valid but scope-restricted Capgo subkey submits an API request with the x-limited-key-id header set to 0 or a value that coerces to NaN in the server's parsing logic. The falsy evaluation causes the subkey scoping gate to be skipped, and the request is processed under the full main API key's permission set, granting the attacker access to resources and actions that the subkey was explicitly configured to prohibit. No public proof-of-concept code has been identified, but the technique requires no specialized tooling - a standard HTTP client with header manipulation capability suffices. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Subkey permission bypass in Capgo before 12.128.2 allows authenticated API users to escalate from restricted subkey scope to full main API key privileges by sending malformed x-limited-key-id header values. The parsing flaw - triggered by submitting zero, NaN-coercible, or duplicate header values - causes the subkey scoping enforcement to evaluate to falsy, silently falling through to the unrestricted main API key context. No public exploit code has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog, but the bypass is mechanically straightforward for any holder of a valid subkey credential.
RemediationAI
Upgrade Capgo to version 12.128.2 or later, which is confirmed as the patched release per the vendor security advisory GHSA-42vv-8j94-24wj at https://github.com/Cap-go/capgo/security/advisories/GHSA-42vv-8j94-24wj. As a compensating control prior to patching, operators should audit all issued subkeys and consider revoking any that are not actively in use, reducing the attack surface. API gateway or WAF rules that enforce strict numeric validation and reject duplicate or empty x-limited-key-id header values can block the malformed-header bypass paths, though this requires careful tuning to avoid disrupting legitimate traffic. Monitoring API logs for requests where x-limited-key-id is absent, zero, or produces a header array may help detect exploitation attempts. The primary and recommended action remains patching to 12.128.2.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Capgo (CPE: cpe:2.3:a:capgo:capgo:*:*:*:*:*:*:*:*) is an over-the-air (OTA) update delivery platform for Capacitor-based mobile applications. Its API implements a subkey permission model where the x-limited-key-id HTTP header is used to scope incoming requests to a restricted credential context with reduced privileges. CWE-20 (Improper Input Validation) is the root cause: the server-side parsing logic fails to sanitize or strictly validate the header value before using it in an authorization decision. In JavaScript/TypeScript environments, values like 0, empty strings, or NaN are falsy, meaning a strict equality or truthiness check against a well-formed key ID silently fails and the code falls back to the main API key path. Duplicate header submission can produce array-type values that similarly fail numeric comparison, producing the same bypass. The flaw is a classic input validation gap at an authorization gate rather than a cryptographic or protocol-level weakness.
Know when Capgo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
PR:L because a valid subkey credential is required; S:U as escalation remains within the Capgo API boundary; no availability impact evident.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Capgo before 12.128.2 contains a weak parsing vulnerability in the x-limited-key-id header that allows attackers to bypass subkey enforcement by submitting malformed values, zero, or duplicate headers that result in NaN or falsy values. Remote attackers can manipulate the x-limited-key-id header to disable limited key scoping and execute requests using the main API key context instead of restricted subkey permissions.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Account pre-registration hijack in Capgo before 12.128.2 lets a remote unauthenticated attacker claim an account under a
Cross-domain SSO account takeover in Capgo before 12.128.2 allows an attacker with enterprise org admin access and a mal
Authentication bypass in Capgo prior to version 12.128.2 lets attackers defeat email-based OTP verification by tampering
Authentication bypass in Capgo before 12.128.2 lets remote unauthenticated attackers mint arbitrary API keys by tamperin
Rate-limit bypass in Capgo versions prior to 12.128.2 lets remote unauthenticated attackers flood the channel_self endpo
Cross-tenant data poisoning in Supabase Capgo before 12.128.2 allows remote unauthenticated attackers to corrupt billing
Server-side privilege escalation in Capgo before 12.128.2 lets authenticated users holding build permissions abuse a pat
Unauthenticated information disclosure in Capgo before 12.128.2 lets remote attackers query the /functions/v1/channel_se
Unauthenticated information disclosure in Capgo before 12.128.2 exposes confidential business metrics through the Supaba
Unauthenticated denial of service in Cap-go capgo (capgo-backend) before 12.128.12 allows remote attackers to exhaust Po
Account takeover in Capgo before 12.128.2 stems from a password-change endpoint that omits current-password validation (
Information disclosure in Capgo (Capacitor live-update/OTA platform) before 12.128.2 lets unauthenticated callers abuse
EUVD-2026-38369
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB