Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nuxt-ollama
  4. ›
  5. CVE-2026-59158

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

September 9, 2026

nuxt-ollama@1.2.26 unconditionally merges all module options — including api_key — into Nuxt’s public runtime config (runtimeConfig.public.ollama). Nuxt serializes runtimeConfig.public into the SSR HTML response inside a <script> payload block (window.__NUXT__), making the API key visible in plaintext to any unauthenticated HTTP client that fetches the page. An attacker with no credentials can steal the Ollama cloud API key with a single HTTP GET request, then use it to make arbitrary requests to the Ollama API at the operator’s expense.

References

  • github.com/advisories/GHSA-fxg7-897c-57mp
  • github.com/thoda-dev/nuxt-ollama/security/advisories/GHSA-fxg7-897c-57mp
  • nvd.nist.gov/vuln/detail/CVE-2026-59158

Code Behaviors & Features

Detect and mitigate CVE-2026-59158 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.2.26 before 1.3.1

Fixed versions

  • 1.3.1

Solution

Upgrade to version 1.3.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-522: Insufficiently Protected Credentials

Source file

npm/nuxt-ollama/CVE-2026-59158.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.