{"answers":{"affected":"4 open source packages ship an affected version, including zebra-network and zebrad. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40881 exists.","fix":"Upgrade zebra-network to 5.0.1 or later.","what":"CVE-2026-40881 is a medium-severity denial of service vulnerability in ZcashFoundation zebra-network, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40881 and fix it if it is affected.\n\nWhat it is: CVE-2026-40881 is a medium-severity denial of service vulnerability in ZcashFoundation zebra-network, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40881 exists.\n\nAffected packages and fixed versions:\n- zebra-network (crates.io): affected all versions; fixed in 5.0.1\n- zebra-network (crates.io): affected all versions; fixed in 5.0.1\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-40881/ (Markdown: https://insights.sbomify.com/CVE-2026-40881/index.md)","id":"CVE-2026-40881","markdown":"https://insights.sbomify.com/CVE-2026-40881/index.md","name":"CVE-2026-40881","record":{"aliases":["GHSA-xr93-pcq3-pxf8"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Zcash node software","requires_auth":"none","summary":"Attackers can cause out-of-memory aborts in Zebra Zcash nodes by sending oversized address messages, requiring an upgrade to fix.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zebra-network","vendor":"zfnd"},{"product":"zebrad","vendor":"zfnd"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"ZEBRA is a Zcash node written entirely in Rust. Prior to zebrad version 4.3.0 and zebra-network version 5.0.1, when deserializing addr or addrv2 messages, which contain vectors of addresses, Zebra would fully deserialize them up to a maximum length (over 233,000) that was derived from the 2 MiB message size limit. This is much larger than the actual limit of 1,000 messages from the specification. Zebra would eventually check that limit but, at that point, the memory for the larger vector was already allocated. An attacker could cause out-of-memory aborts in Zebra by sending multiple such messages over different connections. This vulnerability is fixed in zebrad version 4.3.0 and zebra-network version 5.0.1.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Zebra: addr/addrv2 Deserialization Resource Exhaustion","id":"CVE-2026-40881","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"OpenRemote has XXE in Velbus Asset Import","id":"CVE-2026-40882"},"packages":[{"ecosystem":"crates.io","fixed":["5.0.1"],"introduced":["0"],"last_affected":[],"package":"zebra-network","purl":null,"source":"GHSA-xr93-pcq3-pxf8"},{"ecosystem":"crates.io","fixed":["5.0.1"],"introduced":["0"],"last_affected":[],"package":"zebra-network","purl":"pkg:cargo/zebra-network","source":"GHSA-xr93-pcq3-pxf8"},{"ecosystem":"crates.io","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"zebrad","purl":null,"source":"GHSA-xr93-pcq3-pxf8"},{"ecosystem":"crates.io","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"zebrad","purl":"pkg:cargo/zebrad","source":"GHSA-xr93-pcq3-pxf8"}],"prev":{"headline":"Zebra: Cached Mempool Verification Bypasses Consensus Rules for Ahead-of-Tip Blocks","id":"CVE-2026-40880"},"products":["zebra-network","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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-21","vendors":["ZcashFoundation"]},"summary":"Attackers can cause out-of-memory aborts in Zebra Zcash nodes by sending oversized address messages, requiring an upgrade to fix.","url":"https://insights.sbomify.com/CVE-2026-40881/"}