ADVISORIES

Vulnerability

CVE-2025-12695

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.

2 advisories report this vulnerability, across 1 ecosystem.

Medium severity PyPI 2

Advisories

  • GHSA-vvw2-h478-xwr3

    DSPy does not properly restrict file reads

    Moderate CVE-2025-12695 PyPI Updated 7 July 2026
  • PYSEC-2026-1318

    DSPy does not properly restrict file reads

    CVE-2025-12695 PyPI Updated 7 July 2026

References