Every CVESearch/Get API key

CVE-2026-125326

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

5.8 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.41%Unchanged since Nov 11, 2026
90%50%10%1%

What each source reports

CVE List Score used5.8

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

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.

Record
CVE-2026-125326
CVSS 3.1
5.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-209, CWE-522
Updated
2026-11-10
EUVDEUVD-2026-1217085.8

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

Record
EUVD-2026-121708
CVSS 3.1
5.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Updated
2026-11-12
GitHub AdvisoriesGHSA-68g8-gh8f-7rhg5.8

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

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.

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.

Record
GHSA-68g8-gh8f-7rhg
CVSS 3.1
5.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-209, CWE-522
Updated
2026-11-12
NVD5.8

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.

Record
CVE-2026-125326
CVSS 3.1
5.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-209, CWE-522
Updated
2026-11-10
OSV5.8

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

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.

Record
CVE-2026-125326
CVSS 3.1
5.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-209, CWE-522
Updated
2026-11-12
OSVGHSA-68g8-gh8f-7rhg5.8

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

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.

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.

Record
GHSA-68g8-gh8f-7rhg
CVSS 3.1
5.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-209, CWE-522
Updated
2026-11-12

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/pgEdge/pgedge-rag-server
Go
before 1.0.1-0.20260729022402-72e0785a6d7c
1.0.1-0.20260729022402-72e0785a6d7c

History

History
RecordedChangedSources
publishedEUVD
affected, referencesOSV
affected, facts, referencesGitHub Advisories, OSV
aliases, referencesNVD, OSV
aliases, publishedEUVD
first indexedCVE List

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-125326 is a medium vulnerability (CVSS 5.8) in Pgedge Pgedge-rag-server, published November 10, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in github.com/pgEdge/pgedge-rag-server 1.0.1-0.20260729022402-72e0785a6d7c.

References

MoveEnter Open