MEDIUM · CVSS 3.1 5.8 EPSS 0.4% · 26th percentile CWE-209CWE-522

CVE-2026-125328: pgEdge Go LLM Library discloses provider API key fragments in error messages

Published 2026-11-12 · Updated 2026-11-23 · Also known as GHSA-8835-xmqj-354h, GO-2026-6969

Summary

The pgEdge Go LLM Library improperly includes partial LLM provider API key fragments in unauthenticated health endpoint error messages. Applications using versions 0.1.0 or 0.1.1 with the bundled HTTP proxy and no explicit authorization hook must upgrade and rotate credentials.

Who is affected

Unauthenticated callers can read parts of the operator's configured LLM provider API key if they can reach the GET /v1/health endpoint. This occurs because the library pings providers using real credentials and returns verbatim error messages containing masked key fragments. Because the disclosed material authenticates to third-party provider accounts, the security scope is changed.

Exploitability

The vulnerability is exploitable over the network without authentication and with low attack complexity, requiring no user interaction. It carries a CVSS base score of 5.8 (Medium) with low confidentiality impact and no integrity or availability impact. The EPSS score is 0.003 and CISA Known Exploited Vulnerabilities status is 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-go-llm-lib >= 0, < 0.1.2-0.20260729024727-7531a55d368b 0.1.2-0.20260729024727-7531a55d368b 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

FAQ

Which versions of the pgEdge Go LLM Library are affected?

Versions 0.1.0 and 0.1.1 are affected by this vulnerability.

Is there a version 0.1.2 fix available?

No, version 0.1.2 was never cut. The first fixed release is version 0.2.0.

Does upgrading to version 0.2.0 secure previously exposed keys?

Upgrading does not undo a disclosure that already happened; operators must rotate any LLM provider credentials configured on an affected version where the proxy was reachable.

Original advisory description
### 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.

References

Source records: GHSA-8835-xmqj-354h, GO-2026-6969 (OSV.dev) · EPSS by FIRST, 2026-11-26.