{"cve":"CVE-2026-59158","nvd":{"published":"2026-10-27T23:17:06.570","modified":"2026-10-27T23:17:06.570","status":"Received","description":"Nuxt Ollama integrates the official Ollama JavaScript library into Nuxt applications. Prior to 1.3.1, `src/module.ts` unconditionally merges all module options, including a configured cloud `api_key`, into `runtimeConfig.public.ollama`. Nuxt serializes this public configuration into the server-rendered HTML `window.__NUXT__` payload, exposing the API key in plaintext to any unauthenticated client that fetches a page. `src/runtime/composables/useOllama.ts` also reads the public key and sends it as an `Authorization` `Bearer` credential in browser-side Ollama requests. Following the documented cloud configuration is sufficient; the visible application template need not make an Ollama request for the secret to leak. A stolen key permits unauthorized cloud API requests at the operator's expense, quota or rate-limit exhaustion, and access to stored models or conversations if the key grants those permissions. This issue is fixed in version 1.3.1.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-522"],"references":["https://github.com/thoda-dev/nuxt-ollama/commit/156e813783ef322ee10dbbdd6bf446a449e1a04f","https://github.com/thoda-dev/nuxt-ollama/releases/tag/v1.3.1","https://github.com/thoda-dev/nuxt-ollama/security/advisories/GHSA-fxg7-897c-57mp"],"products":[],"source":"nvd","synced_at":"2026-10-27T23:42:42.385810799+00:00"},"epss":null,"kev":null,"osv":[{"id":"GHSA-fxg7-897c-57mp","url":"https://osv.dev/vulnerability/GHSA-fxg7-897c-57mp","summary":"Nuxt Ollama: Public Runtime Config Exposes Ollama API Key to Browser Clients","modified":"2026-09-10T00:10:58.654611Z","packages":[{"ecosystem":"npm","name":"nuxt-ollama","purl":"pkg:npm/nuxt-ollama","ranges":[">=1.2.26 <1.3.1"],"fixed":["1.3.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}