---
id: "CVE-2026-125326"
page: "https://infrastack.ai/live/CVE-2026-125326"
kind: "vulnerability"
aliases: ["CVE-2026-125326"]
title: "pgEdge RAG Server: error responses can leak part of a provider API key"
severity: "medium"
cvss: 5.8
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "pgEdge RAG Server", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["ai-tooling", "llm-providers", "pgedge-rag-server", "pgvector", "postgresql"]
not_affected_if: ["auth-required", "internal-only"]
published_at: "2026-11-10T18:17:34+00:00"
first_seen_at: "2026-11-10T18:22:56+00:00"
updated_at: "2026-11-10T18:25:05+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125326", "first_seen_at": "2026-11-10T18:22:56+00:00"}]
exploit_sources: []
---

# pgEdge RAG Server: error responses can leak part of a provider API key

Link for people: https://infrastack.ai/live/CVE-2026-125326 (this .md is for agents)

pgEdge RAG Server is an API server for retrieval-augmented generation over PostgreSQL. Before 2.0.0, its unauthenticated query API returns raw error text from failed LLM provider calls, which can quote a partially masked operator API key to any remote caller.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:pgEdge RAG Server affected range not listed fixed no fixed version listed

## How to check

- Check the installed pgEdge RAG Server version; versions before `2.0.0` are affected.
- Look for an unauthenticated query endpoint exposed to the network in the RAG server handlers in `internal/server/handlers.go`.

## Fix

- pgEdge RAG Server: upgrade to `2.0.0`.

## Timeline

- 2026-11-10T18:22:56+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125326

## Documents

- [advisory] Vendor advisory: github.com https://github.com/pgEdge/pgedge-rag-server/security/advisories/GHSA-68g8-gh8f-7rhg
- [fix] Patch: github.com https://github.com/pgEdge/pgedge-rag-server/commit/72e0785a6d7cc9e35ad67d570bc9fddeaa4b2f61
- [fix] Release notes: github.com https://github.com/pgEdge/pgedge-rag-server/releases/tag/v2.0.0

## From the sources

pgEdge RAG Server is an API server for retrieval-augmented generation over PostgreSQL content using pgvector. Prior to 2.0.0, the unauthenticated query API in internal/server/handlers.go returns err.Error() from failed LLM provider calls, preserving provider-controlled error text that can quote a partially masked submitted API key. A remote caller can cause an authentication failure and obtain part of the operator's credential for the third-party provider account through the query API error response. This issue is fixed in version 2.0.0.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
