All vulnerabilities

Go

CVE-2026-125328

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

Severity
Medium 5.8
Published
12 Nov 2026
Last changed
12 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.1.2-0.20260729024727-7531a55d368b
Exploit chance
0.3% in the next 30 daysHigher than 21% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Information exposure through error messages (CWE-209)Insufficiently protected credentials (CWE-522)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Also known as
GHSA-8835-xmqj-354h
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/pgEdge/pgedge-go-llm-libGo · osv:Go:github.com/pgEdge/pgedge-go-llm-lib
  • Every version before 0.1.2-0.20260729024727-7531a55d368b

About github.com/pgEdge/pgedge-go-llm-lib

This is the only vulnerability in github.com/pgEdge/pgedge-go-llm-lib in our list.

References