CVE-2026-125326

CVE-2026-125326 is a medium-severity security vulnerability in github.com/pgEdge/pgedge-rag-server (go), affecting versions < 1.0.1-0.20260729022402-72e0785a6d7c. It is fixed in 1.0.1-0.20260729022402-72e0785a6d7c.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

pgEdge RAG Server discloses part of the configured provider credential through API error messages

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.

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:

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.

CVE-2026-125326 has a CVSS score of 5.8 (Medium). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.0.1-0.20260729022402-72e0785a6d7c); upgrading removes the vulnerable code path.

Affected versions

github.com/pgEdge/pgedge-rag-server (< 1.0.1-0.20260729022402-72e0785a6d7c)

Security releases

github.com/pgEdge/pgedge-rag-server → 1.0.1-0.20260729022402-72e0785a6d7c (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

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.

Frequently Asked Questions

  1. What is CVE-2026-125326? CVE-2026-125326 is a medium-severity security vulnerability in github.com/pgEdge/pgedge-rag-server (go), affecting versions < 1.0.1-0.20260729022402-72e0785a6d7c. It is fixed in 1.0.1-0.20260729022402-72e0785a6d7c.
  2. How severe is CVE-2026-125326? CVE-2026-125326 has a CVSS score of 5.8 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of github.com/pgEdge/pgedge-rag-server are affected by CVE-2026-125326? github.com/pgEdge/pgedge-rag-server (go) versions < 1.0.1-0.20260729022402-72e0785a6d7c is affected.
  4. Is there a fix for CVE-2026-125326? Yes. CVE-2026-125326 is fixed in 1.0.1-0.20260729022402-72e0785a6d7c. Upgrade to this version or later.
  5. Is CVE-2026-125326 exploitable, and should I be worried? Whether CVE-2026-125326 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2026-125326 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2026-125326? Upgrade github.com/pgEdge/pgedge-rag-server to 1.0.1-0.20260729022402-72e0785a6d7c or later.

Other vulnerabilities in github.com/pgEdge/pgedge-rag-server

Stop the waste.
Protect your environment with Kodem.