Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
thoda-dev nuxt-ollama
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Nuxt Ollama 将官方 Ollama JavaScript 库集成到 Nuxt 应用中。在 1.3.1 版本之前, 会无条件地将所有模块配置选项(包括已配置的云端 )合并到 中。Nuxt 会将此公开配置序列化为服务器端渲染 HTML 中的 负载,导致 API 密钥以明文形式暴露给任何获取页面的未认证客户端。此外, 也会读取该公开密钥,并在浏览器端的 Ollama 请求中将其作为 请求头中的 凭证发送。只需按照文档配置云端选项,即使应用模板本身不发起 Ollama 请求,密钥仍可能泄露。被盗用的密钥可被用于发

CVSS 7.5 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59158

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Nuxt Ollama: public runtime configuration discloses the configured cloud API key
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
不充分的凭证保护机制
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
thoda-dev nuxt-ollama < 1.3.1 -

II. Public POCs for CVE-2026-59158

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59158

请登录查看更多情报信息。

Other References for CVE-2026-59158 (3)

IV. Related Vulnerabilities