CVE-2026-125328
pgEdge Go LLM Library discloses provider API key fragments in error messages
pgEdge Go LLM Library provides a unified Go interface for multiple LLM providers with streaming, tool calling, retries, and an HTTP and server-sent events proxy. From 0.1.0 until 0.2.0, GET /v1/health in llm/proxy/handlers.go uses handleHealth to ping providers with the operator's real credentials and returns their error text, while the Authorize hook in llm/proxy/proxy.go permits access by default when the consuming application does not configure it. When a provider rejects the configured credential, a remote caller who can reach the proxy can obtain part of the operator's third-party provider API key from the resulting error. This issue is fixed in version 0.2.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
What each source reports
CVE List Score used 5.8
pgEdge Go LLM Library discloses provider API key fragments in error messages
pgEdge Go LLM Library provides a unified Go interface for multiple LLM providers with streaming, tool calling, retries, and an HTTP and server-sent events proxy. From 0.1.0 until 0.2.0, GET /v1/health in llm/proxy/handlers.go uses handleHealth to ping providers with the operator's real credentials and returns their error text, while the Authorize hook in llm/proxy/proxy.go permits access by default when the consuming application does not configure it. When a provider rejects the configured credential, a remote caller who can reach the proxy can obtain part of the operator's third-party provider API key from the resulting error. This issue is fixed in version 0.2.0.
- Record
CVE-2026-125328- CVSS 3.1
- 5.8 Medium
CVSS: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-121710 5.8
pgEdge Go LLM Library discloses provider API key fragments in error messages
- Record
EUVD-2026-121710- CVSS 3.1
- 5.8 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N - Updated
- 2026-11-12
GitHub AdvisoriesGHSA-8835-xmqj-354h 5.8
pgEdge Go LLM Library discloses provider API key fragments in error messages
Impact
An unauthenticated caller could read part of the operator's configured LLM provider API key.
The library's own health handler pings every configured provider using the operator's real credential and returns the resulting error text verbatim. Providers characteristically quote a partially masked form of the credential they rejected, so a failing ping published a fragment of the key.
The endpoint is unauthenticated by default. authorize() returns
true immediately when the consuming application sets no Authorize hook,
so GET /v1/health is reachable by anyone who can reach the listening
port unless the consumer opted in to authentication.
Who is affected: any application embedding pgedge-go-llm-lib at
0.1.0 or 0.1.1 that exposes the bundled HTTP proxy without setting an
Authorize hook. Both affected versions are released tags and resolve
through the public Go module proxy.
The disclosed material authenticates to a third-party provider account rather than to pgEdge software, which is why the severity carries Scope: Changed.
Evidence at v0.1.1: llm/proxy/handlers.go:296 (handleHealth
returning err.Error() in ProviderHealth.Error), llm/proxy/proxy.go:247
(authorize() defaulting to permit), and llm/proxy/proxy.go:350
(writeError writing the error with no redaction).
Patches
Fixed in 0.2.0. Upgrade to 0.2.0 or later, which redacts
credentials from provider error messages unconditionally. The fix adds
llm/internal/redact, with a follow-up anchoring word boundaries, and is
pinned by tests in that package.
Note the version. There is no 0.1.2 — it was never cut, and some
earlier material named it in error. 0.2.0 is the first fixed release.
Upgrading does not undo a disclosure that already happened. Rotate any
LLM provider credential configured on an affected version where the
proxy was reachable without an Authorize hook, particularly if a
provider was rejecting that key at the time.
Workarounds
Set an Authorize hook on the proxy, which closes the unauthenticated
route to the health endpoint. Restricting network access to the listening
port limits who can reach it. Neither removes the underlying disclosure
for a caller who does reach the endpoint.
- Record
GHSA-8835-xmqj-354h- CVSS 3.1
- 5.8 Medium
CVSS: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
NVD 5.8
pgEdge Go LLM Library provides a unified Go interface for multiple LLM providers with streaming, tool calling, retries, and an HTTP and server-sent events proxy. From 0.1.0 until 0.2.0, GET /v1/health in llm/proxy/handlers.go uses handleHealth to ping providers with the operator's real credentials and returns their error text, while the Authorize hook in llm/proxy/proxy.go permits access by default when the consuming application does not configure it. When a provider rejects the configured credential, a remote caller who can reach the proxy can obtain part of the operator's third-party provider API key from the resulting error. This issue is fixed in version 0.2.0.
- Record
CVE-2026-125328- CVSS 3.1
- 5.8 Medium
CVSS: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
OSV 5.8
pgEdge Go LLM Library discloses provider API key fragments in error messages
pgEdge Go LLM Library provides a unified Go interface for multiple LLM providers with streaming, tool calling, retries, and an HTTP and server-sent events proxy. From 0.1.0 until 0.2.0, GET /v1/health in llm/proxy/handlers.go uses handleHealth to ping providers with the operator's real credentials and returns their error text, while the Authorize hook in llm/proxy/proxy.go permits access by default when the consuming application does not configure it. When a provider rejects the configured credential, a remote caller who can reach the proxy can obtain part of the operator's third-party provider API key from the resulting error. This issue is fixed in version 0.2.0.
- Record
CVE-2026-125328- CVSS 3.1
- 5.8 Medium
CVSS: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-8835-xmqj-354h 5.8
pgEdge Go LLM Library discloses provider API key fragments in error messages
Impact
An unauthenticated caller could read part of the operator's configured LLM provider API key.
The library's own health handler pings every configured provider using the operator's real credential and returns the resulting error text verbatim. Providers characteristically quote a partially masked form of the credential they rejected, so a failing ping published a fragment of the key.
The endpoint is unauthenticated by default. authorize() returns
true immediately when the consuming application sets no Authorize hook,
so GET /v1/health is reachable by anyone who can reach the listening
port unless the consumer opted in to authentication.
Who is affected: any application embedding pgedge-go-llm-lib at
0.1.0 or 0.1.1 that exposes the bundled HTTP proxy without setting an
Authorize hook. Both affected versions are released tags and resolve
through the public Go module proxy.
The disclosed material authenticates to a third-party provider account rather than to pgEdge software, which is why the severity carries Scope: Changed.
Evidence at v0.1.1: llm/proxy/handlers.go:296 (handleHealth
returning err.Error() in ProviderHealth.Error), llm/proxy/proxy.go:247
(authorize() defaulting to permit), and llm/proxy/proxy.go:350
(writeError writing the error with no redaction).
Patches
Fixed in 0.2.0. Upgrade to 0.2.0 or later, which redacts
credentials from provider error messages unconditionally. The fix adds
llm/internal/redact, with a follow-up anchoring word boundaries, and is
pinned by tests in that package.
Note the version. There is no 0.1.2 — it was never cut, and some
earlier material named it in error. 0.2.0 is the first fixed release.
Upgrading does not undo a disclosure that already happened. Rotate any
LLM provider credential configured on an affected version where the
proxy was reachable without an Authorize hook, particularly if a
provider was rejecting that key at the time.
Workarounds
Set an Authorize hook on the proxy, which closes the unauthenticated
route to the health endpoint. Restricting network access to the listening
port limits who can reach it. Neither removes the underlying disclosure
for a caller who does reach the endpoint.
- Record
GHSA-8835-xmqj-354h- CVSS 3.1
- 5.8 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
github.com/pgEdge/pgedge-go-llm-libGo | before 0.1.2-0.20260729024727-7531a55d368b | 0.1.2-0.20260729024727-7531a55d368b |
History
| Recorded | Changed | Sources |
|---|---|---|
| published | EUVD | |
| affected, references | OSV | |
| affected, facts, references | GitHub Advisories, OSV | |
| aliases, references | NVD, OSV | |
| cwes, references, severity, title | CVE List | |
| first indexed | EUVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-125328 is a medium vulnerability (CVSS 5.8) in Pgedge Pgedge-go-llm-lib, published November 10, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.29%, the 21st percentile. Fixed in github.com/pgEdge/pgedge-go-llm-lib 0.1.2-0.20260729024727-7531a55d368b.
References
github.com/pgEdge/pgedge-go-llm-lib/security/advisories/GHSA-8835-xmqj-354h
github.com/pgEdge/pgedge-go-llm-lib/pull/26
github.com/pgEdge/pgedge-go-llm-lib/commit/7531a55d368b3a29cd173c792cc4609c4134b076
github.com/pgEdge/pgedge-go-llm-lib/commit/8bb9a6380d5f8db0124b51605759897034ad4da1
github.com/pgEdge/pgedge-go-llm-lib/releases/tag/v0.2.0
nvd.nist.gov/vuln/detail/CVE-2026-125328
github.com/advisories/GHSA-8835-xmqj-354h
github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125328.json
github.com/pgEdge/pgedge-go-llm-lib