mediumCVSS 6.9NVD status: Modified

CVE-2025-51471

Ollama: Cross-Domain Token Exposure in server.auth.getAuthorizationToken in Ollama 0.6.7 allows remote attackers to steal authentication tokens and bypass access controls via a malicious realm value in a WWW-Authenticate head...

ComponentOllama
Severitymedium (CVSS 6.9)
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
Published (NVD)2025-07-22
Last modified2026-06-17
Affected versions
ollama = 0.6.7
Fixed insee the vendor advisory
WeaknessCWE-345CWE-384
CISA KEVnot listed

NVD description

Cross-Domain Token Exposure in server.auth.getAuthorizationToken in Ollama 0.6.7 allows remote attackers to steal authentication tokens and bypass access controls via a malicious realm value in a WWW-Authenticate header returned by the /api/pull endpoint.

Does CVE-2025-51471 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for Ollama.
Check my stack

What to do

  • NVD lists no fixed version yet: follow the vendor advisory below and keep Ollama off the public internet until a fix ships.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other Ollama CVEs

All Ollama CVEs