DSPy does not properly restrict file reads
Moderate severity
GitHub Reviewed
Published
Nov 4, 2025
to the GitHub Advisory Database
•
Updated Nov 4, 2025
Description
Published by the National Vulnerability Database
Nov 4, 2025
Published to the GitHub Advisory Database
Nov 4, 2025
Reviewed
Nov 4, 2025
Last updated
Nov 4, 2025
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