CVE-2026-34172 Giskard Agents have Server-side template injection via ChatWorkflow.chat() using non-sandboxed Jinja2 Environment

High 7.7 Published Updated

Attackers can achieve remote code execution by passing malicious input to ChatWorkflow.chat() due to unsafe Jinja2 template rendering.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-34172?

CVE-2026-34172 is a high-severity code injection vulnerability in Giskard-AI giskard-oss, published on 31 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Giskard is an open-source Python library for testing and evaluating agentic systems. Prior to versions 0.3.4 and 1.0.2b1, ChatWorkflow.chat(message) passes its string argument directly as a Jinja2 template source to a non-sandboxed Environment. A developer who passes user input to this method enables full remote code execution via Jinja2 class traversal. The method name chat and parameter name message naturally invite passing user input directly, but the string is silently parsed as a Jinja2 template, not treated as plain text. This issue has been patched in versions 0.3.4 and 1.0.2b1.

Weakness: CWE-1336

Which versions are affected by CVE-2026-34172?

5 open source packages ship an affected version, including giskard-agents. It affects 2 products.

PackageAffectedFixed in
giskard-agents PyPIAll versions0.3.4, 1.0.2b1
giskard-agents PyPIAll versions0.3.4
giskard-agents PyPIAll versions0.3.4
giskard-agents PyPIFrom 1.0.1a11.0.2b1
giskard-agents PyPIFrom 1.0.1a11.0.2b1

Products include Giskard Giskard-Agent, Giskard Giskard-Agents.

How do I fix CVE-2026-34172?

Upgrade giskard-agents to a fixed version for your release line: 0.3.4 or 1.0.2b1.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-34172 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34172 exists.

Sources

Also known as GHSA-frv4-x25r-588m, PYSEC-2026-2487.

Is CVE-2026-34172 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free