CVE-2026-40319: Giskard checks Denial of Service Vulnerability

LOW
Advisory Identifier: GHSA-rq2q-4r55-9877
CVSS 5.5
CWE-1333
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-40319
GHSA Identifier GHSA-rq2q-4r55-9877
Severity LOW
CVSS v3.1 Base Score 5.5
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Giskard checks
Package Ecosystem PyPI
Published Date
Last Updated

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

giskard-checks fixed: 1.0.2b1
pip install giskard-checks>=1.0.2b1
Verify Direct and Transitive Dependencies

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

## Summary The 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. `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. ## Affected component `text_matching.py`, line 457: `re.search(pattern, text)` ## Remediation Upgrade to `giskard-checks` >= 1.0.2b1. ## Credit Giskard-AI thanks @dhabaleshwar for identifying the missing timeout on regex evaluation.

CVE-2026-40319 Affected Giskard checks Versions

1 component(s)
Fixed Versions:
1.0.2b1
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?
CVE-2026-40319 is a security vulnerability in Giskard checks involving Giskard has a Regular Expression Denial of Service (ReDoS) in RegexMatching Check under CWE-1333: Inefficient Regular Expression Complexity.
Which Giskard checks versions are affected?
Affected versions include releases prior to 1.0.2b1 across affected packages: giskard-checks.
What version fixes CVE-2026-40319?
Upgrading to 1.0.2b1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is giskard-checks affected?
Yes, giskard-checks is affected in releases prior to 1.0.2b1. Upgrade your dependency to 1.0.2b1 or later.
What is the CVSS score of CVE-2026-40319?
CVE-2026-40319 has a CVSS v3.1 base score of 5.5 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-40319?
CVE-2026-40319 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check PyPI dependencies for CVE-2026-40319?
Run the dependency tree command: 'pip show giskard-checks'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}