MEDIUM · CVSS 3.1 5.8 EPSS 0.5% · 35th percentile CWE-209CWE-522

CVE-2026-125326: pgEdge RAG Server discloses part of the configured provider credential through API error messages

Published 2026-11-12 · Updated 2026-11-23 · Also known as GHSA-68g8-gh8f-7rhg, GO-2026-6972

Summary

The pgEdge RAG Server exposes a fragment of the configured LLM provider API credential in API error messages when authentication fails. Users of pgEdge RAG Server versions 1.0.0 and earlier should rotate their provider credentials immediately.

Who is affected

Any deployment of pgEdge RAG Server v1.0.0 or earlier, including all alpha and beta pre-releases, with a query endpoint accessible by untrusted parties is affected. The vulnerability specifically targets credentials configured for external LLM providers like OpenAI. The disclosure occurs because the server relays provider error messages directly to callers, which characteristically include a partially masked form of the rejected API key. Since the endpoint carries no authentication in affected versions, any remote unauthenticated caller can trigger this error condition.

Exploitability

The CVSS vector rates this vulnerability as MEDIUM (5.8) with Network attack capability (AV:N), low attack complexity (AC:L), no required privileges (PR:N), and no user interaction (UI:N), indicating straightforward exploitation from remote unauthenticated attackers. The EPSS probability of exploitation is low at 0.4% (percentile 0.361), suggesting limited active exploitation in the wild. CISA has not designated this as a Known Exploited Vulnerability (KEV status: no).

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/pgEdge/pgedge-rag-server >= 0, < 1.0.1-0.20260729022402-72e0785a6d7c 1.0.1-0.20260729022402-72e0785a6d7c go get github.com/pgEdge/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityLow
IntegrityNone
AvailabilityNone
Original advisory description
### Impact An unauthenticated remote caller could read part of the operator's configured LLM provider API key. The query API relayed the text of a provider error straight to the caller. That text carried the upstream provider's own message, and providers characteristically quote a partially masked form of the credential they rejected when authentication fails - so a failing provider call published a fragment of the operator's key. A caller who can reach the endpoint can cause such a failure and read the result. **Who is affected:** any deployment of pgEdge RAG Server at `1.0.0` or earlier, including all alpha and beta pre-releases, whose query endpoint was reachable by an untrusted party. The endpoint carries no authentication in the affected versions. The disclosed material authenticates to a **third-party provider account** rather than to pgEdge software, which is why the severity carries Scope: Changed. `v1.0.0:internal/server/handlers.go:121` relayed `err.Error()` to the client when pipeline execution failed. `parseError` in `v1.0.0:internal/llm/openai/client.go` produced that error by two routes, and both disclose: ```go var errResp ErrorResponse if err := json.Unmarshal(body, &errResp); err != nil { return fmt.Errorf("API error (status %d): %s", resp.StatusCode, string(body)) } return fmt.Errorf("API error (status %d): %s", resp.StatusCode, errResp.Error.Message) ``` The first branch interpolates the entire unparsed response body. The second returns the provider's own message, which for OpenAI quotes the `sk-proj-` prefix and the final four characters of the submitted key. ### Patches **Fixed in `2.0.0`. Upgrade to `2.0.0` or later.** The fix adds `internal/safeerr` and stops provider error text reaching API clients. **Upgrading does not undo the disclosure, and this needs action beyond upgrading. Rotate any LLM provider credential that was configured on an affected version while the endpoint was reachable by an untrusted caller**, particularly if that provider was rejecting the key at the time. A fragment already disclosed stays disclosed. ### Workarounds Place the server behind a proxy that rewrites 5xx response bodies, or terminate provider errors before they reach the API surface. Keeping provider credentials valid, so that no authentication failure is produced, also avoids the disclosure in practice. None of these removes the underlying defect, and none is a substitute for upgrading.

References

Source records: GHSA-68g8-gh8f-7rhg, GO-2026-6972 (OSV.dev) · EPSS by FIRST, 2026-11-26.