Quick answers
- Is CVE-2026-31231 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-31231 being exploited in the wild.
- How severe is CVE-2026-31231?
- Critical severity, with a CVSS score of 9.8, published 12 May 2026.
- Which products and versions are affected?
- Topoteretes Cognee thru v0.4.0, up to and including 0.4.0.
- Is there a fix for CVE-2026-31231?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-31231 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-31231?
- Check whether you run Topoteretes Cognee at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
Cognee through version 0.4.0 is vulnerable to remote code execution (RCE) via its notebook cell execution API endpoint. The root cause is the use of the unsafe Python exec() function to process user-supplied code without any sandboxing, input validation, or security controls. An unauthenticated attacker can exploit this by sending a specially crafted POST request containing malicious Python payloads to the affected endpoint. This results in arbitrary code execution with the privileges of the Cognee server process, potentially leading to full system compromise. The vulnerability is present in all versions up to and including 0.4.0.
Affected products
- topoteretes Cognee up to and including 0.4.0
Timeline
- 2026-05-12: disclosed: Initial vulnerability disclosure and NVD publication