mem0 server lacks authentication and authorization controls for its memory deletion API endpoint
Date: 2026-05
Affected: pip/mem0ai
Attack vector: dos
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-31240
CVE-2026-31241
CVE-2026-7597
CWE: CWE-20
CWE-306
CVSS: 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L)

The mem0 1.0.0 server lacks authentication and authorization controls for its memory deletion API endpoint (DELETE /memories). The endpoint allows unauthenticated users to delete memory records by specifying arbitrary user identifiers (e.g., user_id, run_id, agent_id) in the request query parameters. A remote attacker can exploit this by sending unauthenticated DELETE requests to erase memory data for any user, leading to unauthorized data loss and denial of service.


Mitigations:

Architectural layers (MAESTRO):