CVE-2026-125328

pgEdge Go LLM Library discloses provider API key fragments in error messages

Published Nov 10, 2026 CVSS 3.1 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the pgEdge Go LLM Library to version 0.2.0 or later, which fixes the credential exposure bug.
  • If an upgrade is not immediately possible, configure the Authorize hook in llm/proxy/proxy.go to enforce authentication for all endpoints, preventing unauthenticated access to the health check.
  • Restrict network access to the /v1/health endpoint by placing it behind a firewall or requiring client certificates, so that only trusted clients can invoke it.
  • Audit any custom error handling to ensure that provider responses do not leak credential fragments or sensitive data.

Generated by OpenCVE AI on November 15, 2026 at 02:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8835-xmqj-354h pgEdge Go LLM Library discloses provider API key fragments in error messages
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pgedge
Pgedge pgedge-go-llm-lib
Vendors & Products Pgedge
Pgedge pgedge-go-llm-lib
Type Values Removed Values Added
Description 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.
Title pgEdge Go LLM Library discloses provider API key fragments in error messages
Weaknesses CWE-209
CWE-522
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N'}

Weaknesses
  • CWE-209

    Generation of Error Message Containing Sensitive Information

  • CWE-522

    Insufficiently Protected Credentials

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 13, 2026, 3:34 PM
Reserved
Nov 9, 2026, 9:22 PM
Status
Deferred
Published
Nov 10, 2026, 7:21 PM
Modified
Nov 13, 2026, 4:17 PM