Skip to main content
VulnerabilityPublished Updated

CVE-2026-59158: Nuxt Ollama · Public Runtime Config Exposes Ollama API Key to Browser Clients

Affects nuxt-ollamaSource GCVE Database

0
Compare
Authoritative record:CVE-2026-59158· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 1.3.1 soon.

Data as of 1 Dec 2026, 18:33 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
Patch
Available – fixed in 1.3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.

What to do

Upgrade nuxt-ollama to 1.3.1.

Affected software

ProductAffectedFixed in
npmnuxt-ollamaAffected
  • >=1.2.26 <1.3.1
Fixed in
  • 1.3.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in nuxt-ollama version 1.3.1 that fixes this vulnerability by moving the api_key from the public runtime config to the private runtime config and removing it from the browser composable. Operators should upgrade to version 1.3.1 or later. The recommended remediation is to separate the api_key from public runtimeConfig and only access it server-side, preventing exposure in client-side HTML. No additional mitigation is required once patched.

Description

Nuxt Ollama versions 1.2.26 up to but not including 1.3.1 contain a vulnerability where the Ollama API key is mistakenly exposed in the public runtime configuration. This key is serialized into the server-side rendered HTML and thus visible in plaintext to any unauthenticated client. An attacker can steal the API key with a single HTTP GET request and use it to make unauthorized API calls at the operator's expense. The issue is due to a design flaw merging all module options, including the secret api_key, into the public runtime config. A fix is available in version 1.3.1 that moves the api_key to the private runtime config, preventing exposure in the browser.

References

Community reviews

Loading reviews…