{"id":"CVE-2025-12695","aliases":["PYSEC-2026-1318"],"url":"https://o3.security/vulnerability/CVE-2025-12695","summary":"DSPy does not properly restrict file reads","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.","published":"2025-11-04T15:31:35Z","modified":"2026-07-07T17:57:24.503135806Z","cvss":{"score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"dspy","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12695"},{"type":"PACKAGE","url":"https://github.com/stanfordnlp/dspy"},{"type":"WEB","url":"https://research.jfrog.com/vulnerabilities/dspy-sandbox-escape-arbitrary-file-read-jfsa-2025-001495652"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-07T17:57:24.503135806Z"}}