CVE-2026-40320: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in Giskard-AI giskard-oss
Giskard-AI's open-source testing framework giskard-oss versions prior to 1. 0. 2b1 contain a vulnerability in the ConformityCheck class where the rule parameter is rendered using Jinja2's default Template() constructor. This causes template expressions to be interpreted at runtime, allowing arbitrary code execution if an attacker can write a crafted rule string to a check definition and trigger the test suite. The issue is fixed in version 1. 0. 2b1. Exploitation requires write access to check definitions and execution of the test suite. The vulnerability has a medium severity with a CVSS score of 5. 4.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-40320) in giskard-oss before version 1.0.2b1 arises from improper neutralization of special elements in template rendering (CWE-1336). The ConformityCheck class uses Jinja2's Template() constructor to render the rule parameter, which evaluates template expressions at runtime. If an attacker can supply a malicious rule string via write access to check definitions, they can achieve arbitrary code execution when the test suite runs. This vulnerability is addressed in giskard-checks version 1.0.2b1.
Potential Impact
An attacker with write access to check definitions can execute arbitrary code on the system running the test suite by injecting crafted template expressions. This could lead to compromise of the environment where giskard-oss is used. However, exploitation requires both write permissions to check definitions and execution of the test suite, limiting the attack surface. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade giskard-oss to version 1.0.2b1 or later, where this vulnerability is fixed. Since the vendor advisory does not provide additional remediation details, applying this official fix is the recommended action. Patch status is not explicitly stated but the issue is fixed in version 1.0.2b1, so upgrading to this version or newer mitigates the risk.
CVE-2026-40320: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in Giskard-AI giskard-oss
Description
Giskard-AI's open-source testing framework giskard-oss versions prior to 1. 0. 2b1 contain a vulnerability in the ConformityCheck class where the rule parameter is rendered using Jinja2's default Template() constructor. This causes template expressions to be interpreted at runtime, allowing arbitrary code execution if an attacker can write a crafted rule string to a check definition and trigger the test suite. The issue is fixed in version 1. 0. 2b1. Exploitation requires write access to check definitions and execution of the test suite. The vulnerability has a medium severity with a CVSS score of 5. 4.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-40320) in giskard-oss before version 1.0.2b1 arises from improper neutralization of special elements in template rendering (CWE-1336). The ConformityCheck class uses Jinja2's Template() constructor to render the rule parameter, which evaluates template expressions at runtime. If an attacker can supply a malicious rule string via write access to check definitions, they can achieve arbitrary code execution when the test suite runs. This vulnerability is addressed in giskard-checks version 1.0.2b1.
Potential Impact
An attacker with write access to check definitions can execute arbitrary code on the system running the test suite by injecting crafted template expressions. This could lead to compromise of the environment where giskard-oss is used. However, exploitation requires both write permissions to check definitions and execution of the test suite, limiting the attack surface. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade giskard-oss to version 1.0.2b1 or later, where this vulnerability is fixed. Since the vendor advisory does not provide additional remediation details, applying this official fix is the recommended action. Patch status is not explicitly stated but the issue is fixed in version 1.0.2b1, so upgrading to this version or newer mitigates the risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T21:41:54.505Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e273aebdfbbecc5970e958
Added to database: 4/17/2026, 5:53:50 PM
Last enriched: 4/17/2026, 6:08:24 PM
Last updated: 4/17/2026, 8:17:11 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.