Technical impact
The pgEdge Go LLM Library, from version 0.1.0 through 0.2.0, exposes fragments of the operator’s third‑party provider API key when a provider rejects the supplied credentials. Invoking the health endpoint triggers a request to each provider using the real credentials, and the resulting error message is returned unmodified to the caller. Because the error text contains a portion of the API key, an attacker who can reach the proxy can read sensitive key material, compromising confidentiality of the provider credentials. The flaw is a classic example of information disclosure caused by improper error handling, aligning with CWE‑209 and CWE‑522. No denial‑of‑service or code execution can occur through this vector.
Affected Systems
The vulnerable product is the pgEdge Go LLM Library, managed by the vendor pgEdge. Any installation of versions 0.1.0, 0.1.1, 0.1.2, up to 0.1.9 or 0.2.0‑pre releases that expose GET /v1/health without authentication before the 0.2.0 fix is affected. The library is typically used as a Go package within applications that proxy LLM provider requests. Therefore any system that imports this library and exposes the health endpoint to network clients is at risk. The fix is applied in release 0.2.0.
Risk and Exploitability
The CVSS score is 5.8, indicating moderate difficulty and impact. The EPSS score is less than 1%, suggesting low current exploitation probability. The vulnerability is not yet in the CISA KEV catalog. An attacker who can reach the proxy can trigger the health check, receive an error that includes a key fragment, and thus obtain part of the API key. Because the endpoint is accessible before authorization hooks are configured, the attack is remote over the network and requires no local privileges. Exploit requires only normal network connectivity to the proxy server. Once the fragment is known, an attacker could potentially reconstruct or brute‑force the full key, enabling unauthorized access to the LLM provider.
Github GHSA