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

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T22:17:30.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-frv4-x25r-588m, PYSEC-2026-2487
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Giskard-AI giskard-oss: < 0.3.4; >= 1.0.1a1, < 1.0.2b1
- giskard-agents (PyPI): before 0.3.4; from 1.0.1a1 before 1.0.2b1
- giskard giskard-agent: before 0.3.4; 1.0.2
- giskard giskard-agents: 1.0.1

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-frv4-x25r-588m> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34172> (advisory)
- <https://github.com/Giskard-AI/giskard-oss> (package)
- <https://pypi.org/project/giskard-agents> (package)
- <https://github.com/advisories/GHSA-frv4-x25r-588m> (advisory)

## Sources

- CVE List: [CVE-2026-34172](https://www.cve.org/CVERecord?id=CVE-2026-34172), CVE Terms of Use, modified 2026-03-31
- GitHub Advisory Database: [GHSA-frv4-x25r-588m](https://github.com/advisories/GHSA-frv4-x25r-588m), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-34172](https://nvd.nist.gov/vuln/detail/CVE-2026-34172), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2487](https://osv.dev/vulnerability/PYSEC-2026-2487), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-34172 · Whole record: https://cve.day/CVE-2026-34172.json · Rebuilt by cve.day 2026-11-25T22:59:17.587Z
