ADVISORIES

GitHub Advisory Database

GHSA-vvw2-h478-xwr3

DSPy does not properly restrict file reads

Moderate No fix available CVE-2025-12695PYSEC-2026-1318

Details

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

EcosystemPackageAffected versions
PyPIdspy
All versions up to and including 3.0.3

References