Intel

AIKIDO-2026-545074

libp2p-gossipsub is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-g3g5-x568-qvqx Published Today

87

High Risk

This Affects:

RUSTlibp2p-gossipsub
0.0.1 - 0.49.4
Fixed in 0.49.5
Are you affected? Scan for Free

TL;DR

The Gossipsub message handler inserts every topic hash from a GRAFT control message into the recipient's per peer topics set without a subscription check. A connected peer that repeatedly sends GRAFTs for unique, unknown topic hashes forces the set to grow without bound until the node runs out of memory. Subscription filters, peer scoring, and message size caps do not stop the accumulation. The fix stops the unconditional insertion and enables MaxCountSubscriptionFilter by default, capping per peer subscriptions and rejecting GRAFTs for unsubscribed topics.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your node accepts Gossipsub connections from untrusted peers.

Background info

libp2p-gossipsub is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 0.49.4.

How to fix this

Upgrade the libp2p-gossipsub library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform