# CVE-2026-59158: Nuxt Ollama: public runtime configuration discloses the configured cloud API key

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.51% (percentile 36, 2026-11-26)
- **CWE:** CWE-522
- **Aliases:** GHSA-fxg7-897c-57mp
- **Published:** 2026-09-09T23:47:44.000Z
- **Modified:** 2026-10-29T19:17:24.343Z

## Who should check

- Projects that depend on npm package nuxt-ollama (\>= 1.2.26, \< 1.3.1)
- Anyone running thoda-dev nuxt-ollama \< 1.3.1

## 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.

## Affected and fixed versions

- npm `nuxt-ollama`: affected \>= 1.2.26, \< 1.3.1; fixed 1.3.1 (osv)
- thoda-dev nuxt-ollama: \< 1.3.1 (cvelist)

## Mitigation

- Upgrade nuxt-ollama to 1.3.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-59158. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-59158.md
Affected: nuxt-ollama >= 1.2.26, < 1.3.1
Fixed in: 1.3.1

Steps:
1. Search this machine and project for nuxt-ollama (npm), thoda-dev nuxt-ollama: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-59158 being exploited?

There is no confirmed exploitation: CVE-2026-59158 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.51% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-59158?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-59158?

nuxt-ollama \>= 1.2.26, \< 1.3.1.

### Is there a fix for CVE-2026-59158?

Yes. Fixed in 1.3.1. Upgrade nuxt-ollama to 1.3.1 or later.

### How do I check if I'm affected by CVE-2026-59158?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/thoda-dev/nuxt-ollama/security/advisories/GHSA-fxg7-897c-57mp>
- patch: <https://github.com/thoda-dev/nuxt-ollama/commit/156e813783ef322ee10dbbdd6bf446a449e1a04f>
- other: <https://github.com/thoda-dev/nuxt-ollama/releases/tag/v1.3.1>
- other: <https://github.com/thoda-dev/nuxt-ollama>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-59158>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fxg7-897c-57mp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-59158> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-59158>
