Files
crewAI/lib
Devin AI ed0da4a831 fix: replace eval() with safe AST-based math evaluator in AGENTS.md template
The Calculator tool example in the AGENTS.md template used eval() on
unsanitized LLM input, creating a remote code execution vulnerability
in every new CrewAI project.

Replace eval() with an AST-based evaluator that only supports arithmetic
operators (+, -, *, /, **) and numeric literals, preventing arbitrary
code execution while preserving calculator functionality.

Closes #5056

Co-Authored-By: João <joao@crewai.com>
2026-03-25 04:03:25 +00:00
..