CVE-2025-9959
High
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.
SeverityHigh
CVSS7.6
Exploit probability—
ProductSmolagents
PublishedSep 3, 2025
First seenSep 3, 2025
Weakness typeCWE-94Code injection
How to fix
Update
- smolagents1.21.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| smolagents | v < 1.21.0 | 1.21.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.