{"answers":{"affected":"4 open source packages ship an affected version, including zebra-consensus and zebrad. It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-40880 in the wild and no public exploit code.","fix":"Upgrade zebra-consensus to 5.0.2 or later.","what":"CVE-2026-40880 is a high-severity vulnerability in ZcashFoundation zebra-consensus, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40880 and fix it if it is affected.\n\nWhat it is: CVE-2026-40880 is a high-severity vulnerability in ZcashFoundation zebra-consensus, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40880 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- zebra-consensus (crates.io): affected all versions; fixed in 5.0.2\n- zebra-consensus (crates.io): affected all versions; fixed in 5.0.2\n- zebrad (crates.io): affected all versions; fixed in 4.3.1\n- zebrad (crates.io): affected all versions; fixed in 4.3.1\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-40880/ (Markdown: https://insights.sbomify.com/CVE-2026-40880/index.md)","id":"CVE-2026-40880","markdown":"https://insights.sbomify.com/CVE-2026-40880/index.md","name":"CVE-2026-40880","record":{"aliases":["GHSA-xvj8-ph7x-65gf"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Zcash node software","requires_auth":"low_privilege","summary":"A malicious miner can cause a consensus split in Zebra nodes by exploiting a verification cache logic error, leading to network partitioning.","user_interaction":"not_required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zebra-consensus","vendor":"zfnd"},{"product":"zebrad","vendor":"zfnd"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-1025","name":"Comparison Using Wrong Factors"}],"description":"ZEBRA is a Zcash node written entirely in Rust. Prior to zebrad version 4.3.1 and zebra-consensus version 5.0.2, a logic error in Zebra's transaction verification cache could allow a malicious miner to induce a consensus split. By carefully submitting a transaction that is valid for height H+1 but invalid for H+2 and then mining that transaction in a block at height H+2, a miner could cause vulnerable Zebra nodes to accept an invalid block, leading to a consensus split from the rest of the Zcash network. This vulnerability is fixed in zebrad version 4.3.1 and zebra-consensus version 5.0.2.","ecosystems":["crates.io"],"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":"Zebra: Cached Mempool Verification Bypasses Consensus Rules for Ahead-of-Tip Blocks","id":"CVE-2026-40880","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"business_logic","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Zebra: addr/addrv2 Deserialization Resource Exhaustion","id":"CVE-2026-40881"},"packages":[{"ecosystem":"crates.io","fixed":["5.0.2"],"introduced":["0"],"last_affected":[],"package":"zebra-consensus","purl":null,"source":"GHSA-xvj8-ph7x-65gf"},{"ecosystem":"crates.io","fixed":["5.0.2"],"introduced":["0"],"last_affected":[],"package":"zebra-consensus","purl":"pkg:cargo/zebra-consensus","source":"GHSA-xvj8-ph7x-65gf"},{"ecosystem":"crates.io","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"zebrad","purl":null,"source":"GHSA-xvj8-ph7x-65gf"},{"ecosystem":"crates.io","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"zebrad","purl":"pkg:cargo/zebrad","source":"GHSA-xvj8-ph7x-65gf"}],"prev":{"headline":"Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)","id":"CVE-2026-40879"},"products":["zebra-consensus","zebrad"],"published":"2026-04-21","related":[],"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":"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-21","vendors":["ZcashFoundation"]},"summary":"A malicious miner can cause a consensus split in Zebra nodes by exploiting a verification cache logic error, leading to network partitioning.","url":"https://insights.sbomify.com/CVE-2026-40880/"}