CVE-2026-40319: Giskard checks Denial of Service Vulnerability
LOWCVE-2026-40319 is a LOW (CVSS 5.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Giskard checks libraries in the PyPI ecosystem. The issue involves giskard has a regular expression denial of service (redos) in regexmatching check. Remediation is available by upgrading affected packages to version 1.0.2b1.
CVE-2026-40319 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-40319
To remediate this vulnerability, upgrade all affected Giskard checks dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install giskard-checks>=1.0.2b1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show giskard-checks
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-40319, inspect your installed packages using pip:
pip show giskard-checks
Analyze the terminal output to locate any version of Giskard checks in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.2b1), your application is affected.
Note: The pip show giskard-checks command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Giskard checks, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40319 Affected Giskard checks Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
giskard-checks
|
PyPI |
< 1.0.2b1
|
1.0.2b1
|
References
Frequently Asked Questions
What is CVE-2026-40319?
Which Giskard checks versions are affected?
What version fixes CVE-2026-40319?
Is giskard-checks affected?
What is the CVSS score of CVE-2026-40319?
What CWE is associated with CVE-2026-40319?
How can I check PyPI dependencies for CVE-2026-40319?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rq2q-4r55-9877",
"modified" : "2026-04-27T15:02:29Z",
"published" : "2026-04-14T23:13:39Z",
"aliases" : [ "CVE-2026-40319" ],
"summary" : "Giskard has a Regular Expression Denial of Service (ReDoS) in RegexMatching Check",
"details" : "## Summary\nThe RegexMatching check in the `giskard-checks` package passes a user-supplied regular expression pattern directly to Python's re.search() without any timeout, complexity guard, or pattern validation. An attacker who can control the regex pattern or the text being matched can craft inputs that trigger catastrophic backtracking in the regex engine, causing the process to hang indefinitely and denying service to all other operations. \n\n`giskard-checks` is a local developer testing library. Check definitions, including the pattern parameter, are provided in application code or configuration files and executed locally. Exploitation requires write access to a check definition and subsequent execution of the test suite. The absence of a regex timeout could cause availability issues in automated environments such as CI/CD pipelines.\n\n## Affected component\n \n`text_matching.py`, line 457: `re.search(pattern, text)`\n \n## Remediation\n \nUpgrade to `giskard-checks` >= 1.0.2b1.\n \n## Credit\n \nGiskard-AI thanks @dhabaleshwar for identifying the missing timeout on regex evaluation.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "giskard-checks"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2b1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.1b1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-rq2q-4r55-9877"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40319"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Giskard-AI/giskard-oss"
}, {
"type" : "WEB",
"url" : "https://github.com/Giskard-AI/giskard-oss/releases/tag/giskard-checks%2Fv1.0.2b1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-14T23:13:39Z",
"nvd_published_at" : "2026-04-17T18:16:32Z"
}
}