NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2025-12695: DSPy does not properly restrict file reads

mediumCVSS 3.1 5.9GHSA-vvw2-h478-xwr3

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.

Published Nov 4, 2025

Affected packages

dspy

Ecosystem
PyPI
Affected
<= 3.0.3
Fixed in
No patched version yet
Check
pip show dspy

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology