CVE-2026-40320: Giskard - Template Injection
- Cve: CVE-2026-40320
- Name: Giskard - Template Injection
- Description: Giskard is an open-source testing framework for AI models. In versions prior to 1.0.2b1, the ConformityCheck class rendered the rule parameter through Jinja2's default Template() constructor, silently interpreting template expressions at runtime. If check definitions are loaded from an untrusted source, a crafted rule string could achieve arbitrary code execution. Exploitation requires write access to a check definition and subsequent execution of the test suite. This issue has been fixed in giskard-checks version 1.0.2b1.
- Impact: Attackers with write access to check definitions can execute arbitrary code, potentially compromising the system.
- Remediation: Update to version 1.0.2b1 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs write access to check definitions and to execute the test suite
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.0015
- Epss percentile: 0.04114
- Assignee: [email protected]
- Published at: 2026-04-17T18:16:32Z
- Age in days: 221
- Modified at: 2026-10-26T22:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40320
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-7xjm-g8f4-rp26 | nvd | Vendor Advisory |
| https://github.com/Giskard-AI/giskard-oss/releases/tag/giskard-checks%2Fv1.0.2b1 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| giskard:giskard | < 1.0.2 | no | nvd | /v1/products/giskard/giskard |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| giskard-ai/giskard-oss | package, releases, security_advisory | yes | /v1/repositories/giskard-ai/giskard-oss |
Index
- Repositories: 3
- Repositories high signal: 3
- Checked, none or zero: packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts