Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-59158

HIGH 7.5EPSS 36%

Nuxt Ollama: public runtime configuration discloses the configured cloud API key

Also known as GHSA-fxg7-897c-57mp

Mitigation

  • Upgrade nuxt-ollama to 1.3.1 or later.

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

Vulnerability facts

Affected
nuxt-ollama >= 1.2.26, < 1.3.1
Fixed in
1.3.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.51% chance of exploitation in 30 days (percentile 36, 2026-11-26)
CWE
CWE-522
Published
Modified

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

Package / productAffectedFixedSource
npm nuxt-ollama>= 1.2.26, < 1.3.11.3.1osv
thoda-dev nuxt-ollama< 1.3.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors