Skip to content
OpenAdvisories
High · 7.6 CVE-2025-9959 EUVD-2025-26607GHSA-p8v6-48p4-f4r4

Sandbox escape in smolagents Local Python execution environment via dunder attributes

Published Sep 3, 2025 · Updated Sep 3, 2025 · Assigned by JFROG

Description

Incomplete validation of dunder attributes allows an attacker to escape from the Local Python execution environment sandbox, enforced by smolagents. The attack requires a Prompt Injection in order to trick the agent to create malicious code.

Affected products

VendorProductAffectedFixed
— smolagents < 1.21.0 1.21.0

References