Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/pgEdge/pgedge-rag-server
  4. ›
  5. CVE-2026-125326

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

November 12, 2026

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:

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.

References

  • github.com/advisories/GHSA-68g8-gh8f-7rhg
  • github.com/pgEdge/pgedge-rag-server/commit/72e0785a6d7cc9e35ad67d570bc9fddeaa4b2f61
  • github.com/pgEdge/pgedge-rag-server/pull/45
  • github.com/pgEdge/pgedge-rag-server/releases/tag/v2.0.0
  • github.com/pgEdge/pgedge-rag-server/security/advisories/GHSA-68g8-gh8f-7rhg
  • nvd.nist.gov/vuln/detail/CVE-2026-125326

Code Behaviors & Features

Detect and mitigate CVE-2026-125326 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.1-0.20260729022402-72e0785a6d7c

Fixed versions

  • 1.0.1-0.20260729022402-72e0785a6d7c

Solution

Upgrade to version 1.0.1-0.20260729022402-72e0785a6d7c or above.

Impact 5.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-209: Generation of Error Message Containing Sensitive Information
  • CWE-522: Insufficiently Protected Credentials

Source file

go/github.com/pgEdge/pgedge-rag-server/CVE-2026-125326.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 13 Nov 2026 12:17:48 +0000.