Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. giskard-checks
  4. ›
  5. CVE-2026-40320

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

April 14, 2026 (updated April 27, 2026)

The ConformityCheck class in giskard-checks rendered the rule parameter through Jinja2’s default Template() constructor. Because the rule string is silently interpreted as a Jinja2 template, a developer may not realize that template expressions embedded in rule definitions are evaluated at runtime. In a scenario where check definitions are loaded from an untrusted source (e.g. a shared project file or externally contributed configuration), this could lead to arbitrary code execution.

giskard-checks is a local developer testing library with no network-facing service. Check definitions, including the rule parameter, are provided in application code or project configuration files and executed locally. Exploitation requires write access to a check definition and subsequent execution of the test suite by a developer.

However, the implicit template evaluation of the rule parameter is not obvious from the API surface. This hidden behavior increases the likelihood of a developer inadvertently passing untrusted input to it when integrating the library into a larger system.

References

  • github.com/Giskard-AI/giskard-oss/releases/tag/giskard-checks%2Fv1.0.2b1
  • github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-7xjm-g8f4-rp26
  • github.com/advisories/GHSA-7xjm-g8f4-rp26
  • nvd.nist.gov/vuln/detail/CVE-2026-40320

Code Behaviors & Features

Detect and mitigate CVE-2026-40320 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.2-b.1

Fixed versions

  • 1.0.2-b.1

Solution

Upgrade to version 1.0.2-b.1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine

Source file

pypi/giskard-checks/CVE-2026-40320.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:50 +0000.