Security & Quality · [ 3 min read ]

LLM 0.37.2 Patches Two Paths That Leaked OpenAI API Keys to Rival Providers

The fixes, tied to advisories GHSA-v9h7-jj4g-f862 and GHSA-r639-rr7r-x72w, close gaps in extra-openai-models.yaml that sent keys to OpenAI-compatible endpoints.

Key findings

  1. LLM 0.37.2 patches a security issue reported by Daniel de Araujo.
  2. Two GitHub advisories identify the fix: GHSA-v9h7-jj4g-f862 and GHSA-r639-rr7r-x72w.
  3. One failure occurs when the key named by `api_key_name` was never stored.
  4. Another occurs when a `responses: true` model runs with `-o chat_completions 1`.
  5. `llm openai endpoint add`, introduced in version 0.37, now manages `extra-openai-models.yaml`.
LLM 0.37.2 Patches Two Accidental OpenAI API Key Disclosure Paths
Brecht Corbeel / unsplash

LLM 0.37.2 fixes two paths that could send a configured OpenAI API key to a provider other than OpenAI, according to the release notes.

The patch addresses a security issue reported by Daniel de Araujo and points to two GitHub Security Advisory identifiers: GHSA-v9h7-jj4g-f862 and GHSA-r639-rr7r-x72w. De Araujo reported two ways in which LLM could accidentally transfer the configured key.

What exactly could send the key elsewhere?

LLM supports a mechanism called extra-openai-models.yaml for using the tool with OpenAI-compatible API endpoints from other providers. The file defines a boundary where a configured credential and a selected destination meet. The release notes identify two mistakes that could move the credential to the wrong provider.

De Araujo’s report breaks the problem into two trigger combinations:

  • A key that was never stored. If the key named by api_key_name had never been stored, LLM could send the configured OpenAI API key to one of the providers configured for OpenAI-compatible access.
  • A mismatched output option. Running a model configured with responses: true together with -o chat_completions 1 could also send the configured OpenAI API key to one of those providers.

The two cases differ in their trigger but produce the same risk: the credential configured for OpenAI reaches a provider selected through the OpenAI-compatible configuration. The release treats credential routing as part of endpoint support, not as a separate setting.

How does 0.37.2 fit the endpoint workflow?

Version 0.37 introduced llm openai endpoint add, a command that now manages the extra-openai-models.yaml mechanism. The command provides a managed route for adding OpenAI-compatible endpoints from other providers. The security fix therefore lands on the same endpoint-management surface that 0.37 put on the command line.

Developers who adopted the 0.37 command now have both a straightforward configuration workflow and a patched release. Both failure conditions sit inside that workflow: one concerns a missing stored key, while the other concerns an output option used with a responses-enabled model.

What should developers check?\n

Take 0.37.2 if your setup uses extra-openai-models.yaml or an OpenAI-compatible endpoint from another provider. The release notes scope the change to the disclosed security issue and its two key-transfer conditions.

Start with the key named by api_key_name. Confirm that LLM has stored the expected key before you invoke a model through that endpoint. The first disclosed failure occurs when that key is absent.

Next, review invocations of responses: true models for -o chat_completions 1. The second disclosed failure occurs when the output override accompanies that responses configuration.

Run those checks against current configuration and recent command history. One condition concerns whether a stored key exists; the other concerns which output option accompanies the model. Sending a request to another provider and sending it the OpenAI key are not equivalent operations, and 0.37.2 keeps those two steps separate.

The practical takeaway is simple: take 0.37.2, then check the missing-key and output-mode combinations in your own setup.

github.com (Original)

Price tags

Share this article:

More from Sophie Lindqvist

Sophie Lindqvist

Show full bio

Senior reporter covering people, launches and day-to-day practice in AI-coding movement at Vibe Coder.

18 articles

Adjacent departments

« Previous articleNext article »