Skip to content
HighVulnerability

GHSA-frv4-x25r-588m: Giskard Agents have Server-side template injection via ChatWorkflow.chat() using non-sandboxed Jinja2 Environment

Published
Record updated
View JSON
Affected
  • giskard-agents >= 1.0.1a1, <= 1.0.2a1, fixed in 1.0.2b1, released March 26, 2026, 1 day before disclosure
  • giskard-agents <= 0.3.3, fixed in 0.3.4, released March 25, 2026, 2 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

giskard-agents versions up to 0.3.3 and the 1.0.x alpha line pass the string argument of ChatWorkflow.chat() directly into an unsandboxed Jinja2 Environment, so user input is parsed as a template. A developer who passes user input to this method exposes the server to remote code execution through Jinja2 class traversal, which can run system commands, read files and access environment variables.

Mitigation

Update to 0.3.4 (or 1.0.2b1 for the pre-release branch), which replaces the unsandboxed Jinja2 Environment with SandboxedEnvironment.