CVE-2026-56306
Deferred Deferred - Pending Action

Weak Header Parsing in Capgo Allows API Key Bypass

Vulnerability report for CVE-2026-56306, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-22

Last updated on: 2026-06-23

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-22
Last Modified
2026-06-23
Generated
2026-07-13
AI Q&A
2026-06-23
EPSS Evaluated
2026-07-11
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
capgo capgo to 12.128.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Capgo versions before 12.128.2 and involves a weak parsing issue in the x-limited-key-id header.

Attackers can submit malformed, zero, or duplicate x-limited-key-id headers that cause the system to interpret these values as NaN (Not a Number) or falsy.

This allows remote attackers to bypass subkey enforcement, effectively disabling limited key scoping.

As a result, attackers can execute requests using the main API key context instead of the restricted permissions intended by subkeys.

Impact Analysis

This vulnerability can allow attackers to bypass security restrictions imposed by subkey permissions.

By exploiting the weak parsing of the x-limited-key-id header, attackers can gain unauthorized access to perform actions with the full privileges of the main API key.

This can lead to unauthorized operations, potential data exposure, or manipulation within systems using Capgo.

Detection Guidance

This vulnerability can be detected by monitoring network traffic for requests containing the x-limited-key-id header with malformed values such as non-integer strings, zero, or duplicate headers.

Proof-of-concept requests that send values like "73603x", "0", or duplicate x-limited-key-id headers result in bypassing subkey enforcement and returning HTTP 200 responses.

To detect exploitation attempts, you can use network inspection tools or command-line utilities like curl to send test requests with malformed x-limited-key-id headers and observe if the system improperly allows access.

  • Example curl command to test for vulnerability: curl -H "x-limited-key-id: 0" https://your-capgo-endpoint/app
  • Example curl command with duplicate headers: curl -H "x-limited-key-id: 123" -H "x-limited-key-id: 456" https://your-capgo-endpoint/app

If these requests succeed in bypassing subkey restrictions, it indicates the vulnerability is present.

Mitigation Strategies

Immediate mitigation involves applying strict validation on the x-limited-key-id header to reject non-integer strings, zero, negative values, NaN, and comma-separated lists.

Specifically, use validation methods such as Number.isSafeInteger and regex patterns like /^[1-9]\d*$/ to ensure only valid positive integers are accepted.

Replace any truthy checks on the header value with explicit null or invalid value checks to prevent silent bypasses.

Implement a defense-in-depth approach by adding functions like validateSubkeyUser to ensure consistency between subkey and user context.

Upgrade Capgo to version 12.128.2 or later where this vulnerability has been fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56306. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart