{"schema":"threatline.record/2","record":{"id":"CVE-2026-59158","aliases":["GHSA-fxg7-897c-57mp"],"summary":"Nuxt Ollama: public runtime configuration discloses the configured cloud API key","details":"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.","categories":["Frameworks"],"product":"nuxt-ollama","vendor":"thoda-dev","ecosystem":"npm","affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-59158","source_modified_at":"2026-10-27T22:36:09.750Z","fetched_at":"2026-10-28T01:10:53.534015Z","product":"nuxt-ollama","vendor":"thoda-dev","versions":[{"version":"< 1.3.1","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-fxg7-897c-57mp","source_modified_at":"2026-09-10T00:10:58.654611Z","fetched_at":"2026-10-28T01:10:53.534015Z","package":{"name":"nuxt-ollama","ecosystem":"npm","purl":"pkg:npm/nuxt-ollama"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.2.26"},{"fixed":"1.3.1"}]}],"versions":[]}],"fixed_versions":[{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-fxg7-897c-57mp","source_modified_at":"2026-09-10T00:10:58.654611Z","fetched_at":"2026-10-28T01:10:53.534015Z","package":{"name":"nuxt-ollama","ecosystem":"npm","purl":"pkg:npm/nuxt-ollama"},"version":"1.3.1"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-27T22:36:09.750Z","modified_at":"2026-10-27T22:36:09.750Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-59158","fetched_at":"2026-10-28T01:10:53.534015Z","source_modified_at":"2026-10-27T22:36:09.750Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-fxg7-897c-57mp","fetched_at":"2026-10-28T01:10:53.534015Z","source_modified_at":"2026-09-10T00:10:58.654611Z"}],"sources":["CVE List","OSV"],"references":[{"source":"CVE List","url":"https://github.com/thoda-dev/nuxt-ollama/security/advisories/GHSA-fxg7-897c-57mp","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/thoda-dev/nuxt-ollama/commit/156e813783ef322ee10dbbdd6bf446a449e1a04f","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/thoda-dev/nuxt-ollama/releases/tag/v1.3.1","tags":["x_refsource_MISC"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-27T22:36:09.750Z","content_hash":"82554de41389a06e496964d7035199b32dd5fb6c5853b35b53d99d366bd7e94d"}}
