All reports
Medium

DSPy does not properly restrict file reads

Affected versions

Version ranges need review.

PyPIdspy
Affected versions
<=3.0.3
Fixed version
Not reported
PyPIdspy
Affected versions
<= 3.0.3
Fixed version
Not reported

Exploitation

CVE-2025-12695

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-22

Description

The overly permissive sandbox configuration in DSPy allows attackers to steal sensitive files in cases when users build an AI agent which consumes user input and uses the “PythonInterpreter” class.

Links