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
- Upgrade the nuxt-ollama module to version 1.3.1 or later.
- 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.
- Check deployed pages for the api_key value in window.__NUXT__ output and in client-side requests to Ollama endpoints.
- Review Ollama cloud usage and billing logs for unexpected requests made with the exposed key.
- 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`.”
“exposing the API key in plaintext to any unauthenticated client that fetches a page.”
“Following the documented cloud configuration is sufficient; the visible application template need not make an Ollama request for the secret to leak.”
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