{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-59158","id":"CVE-2026-59158","title":"Nuxt Ollama API key exposure in public runtime configuration","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 ","descriptionLong":"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.","published":"2026-10-27T22:36:09.750Z","updated":"2026-10-31T02:30:28.882778870Z","reserved":"2026-07-02T16:50:27.887Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["thoda-dev nuxt-ollama"],"affectedProducts":[{"vendor":"thoda-dev","product":"nuxt-ollama","defaultStatus":null,"versions":[{"version":"< 1.3.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"nuxt-ollama","purl":"pkg:npm/nuxt-ollama","ranges":[">=1.2.26 <1.3.1"],"fixed":["1.3.1"],"advisory":"GHSA-fxg7-897c-57mp"}],"cwes":["CWE-522"],"aliases":["GHSA-fxg7-897c-57mp"],"references":[{"url":"https://github.com/thoda-dev/nuxt-ollama/security/advisories/GHSA-fxg7-897c-57mp","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/thoda-dev/nuxt-ollama/commit/156e813783ef322ee10dbbdd6bf446a449e1a04f","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/thoda-dev/nuxt-ollama/releases/tag/v1.3.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59158.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59158","tags":["advisory"]},{"url":"https://github.com/thoda-dev/nuxt-ollama","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00502,"epssPercentile":0.43748,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-59158","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59158","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-59158","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fxg7-897c-57mp","ok":true,"note":"GHSA-fxg7-897c-57mp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-59158","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}