mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-15 23:42:37 +00:00
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>