CVE-2025-51471
MEDIUM6.9EPSS 0.06%Ollama vulnerable to Cross-Domain Token Exposure in github.com/ollama/ollama
Published: 7/22/2025Modified: 5/21/2026
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.
Affected packages (3)
- Go/github.com/ollama/ollamafrom 0, <= 0.9.6
- Go/github.com/ollama/ollamafrom 0
- PyPI/ollamafrom 0, <= 0.6.7-NA
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
References (6)
- ADVISORYhttps://github.com/advisories/GHSA-x9hg-5q6g-q3jr
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-51471
- EXPLOIThttps://www.gecko.security/blog/cve-2025-51471
- PATCHhttps://github.com/ollama/ollama
- REPORThttps://github.com/ollama/ollama/pull/10750
- WEBhttps://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2