Giskard Agents have Server-side template injection via ChatWorkflow.chat() using non-sandboxed Jinja2 Environment
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-34172
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 12:37 UTC · Revision 1
Source evidence
Giskard Agents have Server-side template injection via ChatWorkflow.chat() using non-sandboxed Jinja2 Environment
core-osv · Original sourcePublished 31 Mar 2026, 13:50 UTC
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.
osv:CVE-2026-34172
Complete source record
{
"id": "bcd176bf0cbd4550f01b113ab0647ecc92bc0cef6bc00c595a7910790c99fec2",
"url": "https://osv.dev/vulnerability/CVE-2026-34172",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Giskard Agents have Server-side template injection via ChatWorkflow.chat() using non-sandboxed Jinja2 Environment",
"summary": "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.",
"evidence": "osv:CVE-2026-34172",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-34172",
"aliases": [
"CVE-2026-34172",
"GHSA-frv4-x25r-588m",
"PYSEC-2026-2487"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/giskard-ai/giskard-agents",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "809e7d3dd64b3f0be0e9a17227aac978b9ea46d7"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.3.4"
}
],
"source": "DESCRIPTION"
}
]
}
},
{
"repo": "https://github.com/giskard-ai/giskard-oss",
"type": "GIT",
"events": [
{
"introduced": "ec216e1d186155d3911fc853850f7518497aa652"
},
{
"fixed": "0a826ad544d5904d8dd5c2d2aa68102af3851263"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.0.1a1"
},
{
"fixed": "1.0.2b1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
}
],
"versions": [
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.3",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.1.2",
"v0.1.1",
"v0.1.0",
"giskard-agents/v1.0.2b1",
"giskard-checks/v1.0.1b1",
"giskard-core/v1.0.1b2",
"giskard-core/v1.0.1b1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34172.json"
}
}
],
"modified": "2026-10-28T02:30:28.661186931Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34172.json",
"https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-frv4-x25r-588m",
"https://nvd.nist.gov/vuln/detail/CVE-2026-34172"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1336"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0.3.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34172.json"
}
},
"related_cves": [
{
"value": "CVE-2026-34172",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 495455,
"published_at": "2026-03-31T13:50:17.24+00:00"
}