GHSA-fxg7-897c-57mp: Nuxt Ollama: Public Runtime Config Exposes Ollama API Key to Browser Clients
Summary
Nuxt Ollama version 1.2.26 has a vulnerability where API keys for the Ollama service are accidentally placed in public runtime configuration (data that gets sent to web browsers). This means anyone can visit the website, look at the page source code, and steal the API key in plain text, then use it to make expensive API calls at the website owner's expense.
Solution / Mitigation
Move the `api_key` from public runtime config to private runtime config by separating it from other options during module setup. The `api_key` should only be used on the server side through `useRuntimeConfig().ollama.api_key` in server utilities, not sent to the browser. The source text provides a code diff showing how to split `api_key` from `publicOptions` and place it in `runtimeConfig.ollama` instead of `runtimeConfig.public.ollama`.
Vulnerability Details
EPSS: 0.0%
Yes
September 9, 2026
Classification
Affected Vendors
Affected Packages
Related Issues
Original source: https://github.com/advisories/GHSA-fxg7-897c-57mp
First tracked: September 9, 2026 at 08:01 PM
Classified by LLM (prompt v3) · confidence: 92%