---
id: CVE-2026-59706
title: mem0 - Unauthenticated Config API Exposure and SSRF via ollama_base_url
summary: >-
  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 …
severity: critical
cvss: 9.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-306
vendor: mem0
product: mem0
affected:
  - mem0 <= a3154d5
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-07-08T13:34:02.069552Z'
exploitAvailable: true
published: '2026-07-07'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T14:18:01.365Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-59706'
references:
  - url: 'https://github.com/mem0ai/mem0/issues/6081'
    label: GitHub Issue
  - url: 'https://github.com/mem0ai/mem0'
    label: Product
  - url: >-
      https://github.com/mem0ai/mem0/commit/a3154d59e52386d4e1189c1f5f44819868f76514
    label: Patch Commit
  - url: >-
      https://www.vulncheck.com/advisories/mem0-server-side-request-forgery-and-plaintext-api-key-exposure-via-unauthenticated-config-endpoints
tags:
  - cve.org
  - exploit-available
epss: 0.00442
epssPercentile: 0.35684
ingestedAt: '2026-09-24T15:45:56.725Z'
---

## Overview

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.

## Affected

- `mem0 <= a3154d5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
