CVE-2026-59706 mem0 - Unauthenticated Config API Exposure and SSRF via ollama_base_url
Unauthenticated attackers can retrieve plaintext API keys and perform SSRF attacks via exposed configuration endpoints in mem0.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-59706?
CVE-2026-59706 is a critical server-side request forgery vulnerability in mem0, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
mem0 contains unauthenticated config API endpoints that expose LLM API keys in plaintext and allow server-side request forgery via attacker-controlled ollama_base_url parameter. Unauthenticated attackers can retrieve stored secrets like OpenAI API keys via GET /api/v1/config/ or trigger SSRF attacks by setting ollama_base_url to internal addresses like cloud IMDS via PUT /api/v1/config/mem0/llm endpoint.
Weakness: CWE-306
Which versions are affected by CVE-2026-59706?
How do I fix CVE-2026-59706?
No fix has been published for CVE-2026-59706 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-59706 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59706 exists.
Sources
Also known as GHSA-225m-p565-9h68.