Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 53%

CVE-2026-31231: n/a

0
Critical
VulnerabilityCVE-2026-31231cvecve-2026-31231
Published: 05/12/2026 (05/12/2026, 00:00:00 UTC)
Source: CVE Database V5

Description

Cognee thru v0.4.0 contains a critical remote code execution vulnerability in its notebook cell execution API endpoint. The endpoint is designed to execute arbitrary Python code provided by the user, but it does so using the unsafe exec() function without any sandboxing, validation, or security controls. An attacker can exploit this by sending a specially crafted POST request containing malicious Python code to the execution endpoint. This leads to arbitrary code execution on the Cognee server with the privileges of the server process, allowing complete compromise of the system.

CVSS v3.1

Score 9.8critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
topoteretes/cognee
pkg:github/topoteretes/cognee
Affected versions
<=0.4.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/20/2026, 18:30:22 UTC

Technical Analysis

CVE-2026-31231 describes a critical remote code execution vulnerability in Cognee through version 0.4.0. The vulnerability exists in the notebook cell execution API endpoint, which uses Python's exec() function unsafely to run user-supplied code without any sandboxing or security controls. This allows an unauthenticated attacker to send specially crafted POST requests containing malicious Python code, resulting in arbitrary code execution on the server with the privileges of the server process. The CVSS v3.1 base score is 9.8, reflecting the high impact and ease of exploitation. There is no vendor advisory or patch available at this time.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary Python code on the Cognee server remotely without authentication. This can lead to complete system compromise, including data theft, service disruption, or further network penetration. The vulnerability is critical due to the lack of access controls and the use of unsafe code execution methods.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the vulnerable API endpoint, implement network-level controls to limit exposure, and avoid deploying Cognee in untrusted environments. Monitor for any updates from the vendor regarding patches or official mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2026-03-09T00:00:00.000Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a036531cbff5d861008c1aa

Added to database: 05/12/2026, 17:36:49 UTC

Last enriched: 05/20/2026, 18:30:22 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 40

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses