Summary
pgEdge Go LLM Library discloses provider API key fragments in error messages
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.
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 at0.1.0 or 0.1.1 that exposes the bundled HTTP proxy without setting anAuthorize 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).
CVE-2026-125328 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 (0.1.2-0.20260729024727-7531a55d368b); upgrading removes the vulnerable code path.
Affected versions
Security releases
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 0.2.0. Upgrade to 0.2.0 or later, which redacts
credentials from provider error messages unconditionally. The fix addsllm/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.
Frequently Asked Questions
- What is CVE-2026-125328? CVE-2026-125328 is a medium-severity security vulnerability in github.com/pgEdge/pgedge-go-llm-lib (go), affecting versions < 0.1.2-0.20260729024727-7531a55d368b. It is fixed in 0.1.2-0.20260729024727-7531a55d368b.
- How severe is CVE-2026-125328? CVE-2026-125328 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.
- Which versions of github.com/pgEdge/pgedge-go-llm-lib are affected by CVE-2026-125328? github.com/pgEdge/pgedge-go-llm-lib (go) versions < 0.1.2-0.20260729024727-7531a55d368b is affected.
- Is there a fix for CVE-2026-125328? Yes. CVE-2026-125328 is fixed in 0.1.2-0.20260729024727-7531a55d368b. Upgrade to this version or later.
- Is CVE-2026-125328 exploitable, and should I be worried? Whether CVE-2026-125328 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
- What actually determines whether CVE-2026-125328 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.
- How do I fix CVE-2026-125328? Upgrade
github.com/pgEdge/pgedge-go-llm-libto 0.1.2-0.20260729024727-7531a55d368b or later.