CVE-2026-40320 json
Giskard has an Unsandboxed Jinja2 Template Rendering in ConformityCheck
published 2026-04-14 6 mo ago modified 2026-10-26 13 d ago also GHSA-7xjm-g8f4-rp26 , PYSEC-2026-2488 , EUVD-2026-24060
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 3%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi giskard-checks 1.0.2b1
- giskard giskard 1.0.2
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.4 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:L |
| CNA | 4.0 | 5.4 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | giskard-checks | <1.0.2b1 |
1.0.2b1 |
Affected products
- Giskard-AI giskard-oss
Classification
- Weakness
-
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
-
github.com
/Giskard-AI/giskard-oss/security/advisories/GHSA-7xjm-g8f4-rp26
web, vendor-advisory
-
github.com
/Giskard-AI/giskard-oss/releases/tag/giskard-checks%2Fv1.0.2b1
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-40320
advisory
-
github.com
/Giskard-AI/giskard-oss
package
-
pypi.org
/project/giskard-checks
package
-
github.com
/advisories/GHSA-7xjm-g8f4-rp26
advisory
Sources
- CVE List CVE-2026-40320
- GitHub Advisory GHSA-7xjm-g8f4-rp26
- NVD CVE-2026-40320
- OSV PYSEC-2026-2488
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.