{"answers":{"affected":"3 open source packages ship an affected version, including giskard-checks. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40319 in the wild and no public exploit code.","fix":"Upgrade giskard-checks to 1.0.2b1 or later.","what":"CVE-2026-40319 is a low-severity denial of service vulnerability in Giskard-AI giskard-oss, published on 17 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40319 and fix it if it is affected.\n\nWhat it is: CVE-2026-40319 is a low-severity denial of service vulnerability in Giskard-AI giskard-oss, published on 17 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-40319 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- giskard-checks (PyPI): affected all versions; fixed in 1.0.2b1\n- giskard-checks (PyPI): affected all versions; fixed in 1.0.2b1\n- giskard-checks (PyPI): affected all versions; fixed in 1.0.2b1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40319/ (Markdown: https://insights.sbomify.com/CVE-2026-40319/index.md)","id":"CVE-2026-40319","markdown":"https://insights.sbomify.com/CVE-2026-40319/index.md","name":"CVE-2026-40319","record":{"aliases":["GHSA-rq2q-4r55-9877","PYSEC-2026-2489"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"AI testing framework","requires_auth":"low_privilege","summary":"An attacker with write access to check definitions can cause indefinite process hangs via catastrophic backtracking in RegexMatching checks.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"giskard","vendor":"giskard"}],"cvss":{"score":1,"severity":"low","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Giskard is an open-source testing framework for AI models. In versions prior to 1.0.2b1, the RegexMatching check passes a user-supplied regular expression pattern directly to Python's re.search() without any timeout or complexity guard. A crafted regex pattern can trigger catastrophic backtracking, causing the process to hang indefinitely. 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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Giskard has a Regular Expression Denial of Service (ReDoS) in RegexMatching Check","id":"CVE-2026-40319","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Giskard has an Unsandboxed Jinja2 Template Rendering in ConformityCheck","id":"CVE-2026-40320"},"packages":[{"ecosystem":"PyPI","fixed":["1.0.2b1"],"introduced":["0"],"last_affected":[],"package":"giskard-checks","purl":null,"source":"GHSA-rq2q-4r55-9877"},{"ecosystem":"PyPI","fixed":["1.0.2b1"],"introduced":["0"],"last_affected":[],"package":"giskard-checks","purl":"pkg:pypi/giskard-checks","source":"GHSA-rq2q-4r55-9877"},{"ecosystem":"PyPI","fixed":["1.0.2b1"],"introduced":["0"],"last_affected":[],"package":"giskard-checks","purl":"pkg:pypi/giskard-checks","source":"PYSEC-2026-2489"}],"prev":{"headline":"SiYuan: Publish Reader Path Traversal Delete via `removeUnusedAttributeView`","id":"CVE-2026-40318"},"products":["giskard-oss"],"published":"2026-04-17","related":[{"cvss_score":5.4,"headline":"Giskard has an Unsandboxed Jinja2 Template Rendering in ConformityCheck","id":"CVE-2026-40320","kev_date_added":null,"published":"2026-04-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-20","vendors":["Giskard-AI"]},"summary":"An attacker with write access to check definitions can cause indefinite process hangs via catastrophic backtracking in RegexMatching checks.","url":"https://insights.sbomify.com/CVE-2026-40319/"}