---
id: CVE-2026-56303
title: >-
  Capgo before 12.128.2 contains an information disclosure vulnerability in the
  find_apikey_by_value PostgreSQL function marked SECURITY DEFINER and
  executable by the anon role
summary: >-
  Capgo before 12.128.2 contains an information disclosure vulnerability in the
  find_apikey_by_value PostgreSQL function marked SECURITY DEFINER and
  executable by the anon role. Unauthenticated attackers can call this function
  via the /res…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-200
published: '2026-07-11'
updated: '2026-07-11'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-56303'
references:
  - url: 'https://github.com/Cap-go/capgo/security/advisories/GHSA-2xjq-h43m-592f'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/capgo-unauthenticated-api-key-metadata-disclosure-via-security-definer-rpc-function
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-07-11T23:16:21.032Z'
epss: 0.00459
epssPercentile: 0.37049
---

## Overview

Capgo before 12.128.2 contains an information disclosure vulnerability in the find_apikey_by_value PostgreSQL function marked SECURITY DEFINER and executable by the anon role. Unauthenticated attackers can call this function via the /rest/v1/rpc/find_apikey_by_value endpoint to retrieve sensitive API key metadata including user_id, mode, org scoping, and expiration details when supplied a valid key value.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
