# CVE-2026-40320: Giskard has an Unsandboxed Jinja2 Template Rendering in ConformityCheck

- Severity: Medium 5.4 (CVSS:4.0, scored by GitHub_M) `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`
- 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.15%, higher than 4% of CVEs (2026-12-02)
- Published: 2026-04-14T23:13:52.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-7xjm-g8f4-rp26, PYSEC-2026-2488
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Giskard-AI giskard-oss: < 1.0.2b1
- giskard-checks (PyPI): before 1.0.2b1
- giskard giskard: before 1.0.2

## Every score

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

## References

- <https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-7xjm-g8f4-rp26> (vendor-advisory, web)
- <https://github.com/Giskard-AI/giskard-oss/releases/tag/giskard-checks%2Fv1.0.2b1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40320> (advisory)
- <https://github.com/Giskard-AI/giskard-oss> (package)
- <https://pypi.org/project/giskard-checks> (package)
- <https://github.com/advisories/GHSA-7xjm-g8f4-rp26> (advisory)

## Sources

- CVE List: [CVE-2026-40320](https://www.cve.org/CVERecord?id=CVE-2026-40320), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-7xjm-g8f4-rp26](https://github.com/advisories/GHSA-7xjm-g8f4-rp26), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-40320](https://nvd.nist.gov/vuln/detail/CVE-2026-40320), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2488](https://osv.dev/vulnerability/PYSEC-2026-2488), CC-BY-4.0, modified 2026-07-13

---

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