threatdeck
Live 14:45 UTC ·

AI Stack Alert High CVE-2026-59158 For AppSec, AI Eng, CISO, SOC / IR AI-assisted

CVE-2026-59158: Nuxt Ollama leaks cloud API key into public runtimeConfig and SSR payload

Nuxt Ollama versions before 1.3.1 merge all module options, including a cloud api_key, into runtimeConfig.public.ollama. Nuxt serializes this into the server-rendered window.__NUXT__ payload, exposing the key in plaintext to any client that loads a page. The source states the leak occurs with the documented cloud configuration alone.

Why it matters

Any visitor to an affected site can read the Ollama cloud API key from page HTML. An attacker can then make API requests billed to the operator, exhaust quota, and access stored models or conversations if the key grants those permissions.

Do this

  1. Upgrade the nuxt-ollama module to version 1.3.1 or later.
  2. Rotate the Ollama cloud API key that was configured in any deployment running a version before 1.3.1, since the key was exposed to clients.
  3. Check deployed pages for the api_key value in window.__NUXT__ output and in client-side requests to Ollama endpoints.
  4. Review Ollama cloud usage and billing logs for unexpected requests made with the exposed key.
  5. Keep cloud API keys out of runtimeConfig.public and any value sent to the browser; use server-only runtime config.

Exploit Clock

Exploitation unlikely (for now)

  • EPSS 0.50%

Signals

  • NoCISA KEV
  • 7.5CVSS
  • 0.50%EPSS
  • NoPublic PoC
  • 37/100Priority
  • 85%Confidence

Evidence

“Prior to 1.3.1, `src/module.ts` unconditionally merges all module options, including a configured cloud `api_key`, into `runtimeConfig.public.ollama`.”

NVD (AI keyword search)

“exposing the API key in plaintext to any unauthenticated client that fetches a page.”

NVD (AI keyword search)

“Following the documented cloud configuration is sufficient; the visible application template need not make an Ollama request for the secret to leak.”

NVD (AI keyword search)

Sources

Affected / related

Nuxt Ollama, ollama (JavaScript library), Nuxt, Ollama

Published 2026-10-27 23:17 UTC · updated 2026-11-08 02:37 UTC · AI-assisted summary, checked against quoted sources · How we score

Following

Follow the vendors, products, AI tools, techniques and actors you care about. Matching stories, CVEs and exploited bugs are marked, a Following tab appears in the feed, and returning visits show what changed. Saved only in this browser.

Presets

Get updates

A personal RSS feed of new stories on everything you follow. Paste it into any feed reader, Slack or Teams RSS app.