NetSight
medium5.9

CVE-2025-12695

DSPy does not properly restrict file reads

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
pipdspy<= 3.0.3none recorded

Weakness classification

References