Skip to content

libp2p-gossipsub

Follow this package

Get the evidence behind this dependency. Browse imported advisories below, or check an exact version against OSV now. View source coverage.

Check the version you ship.

Get a fresh OSV lookup for an exact release. We send the package name and version to OSV without storing a report.

Advisories & recorded fixes

unknown
RUSTSEC-2026-0534No CVE assignedPackage fixes recorded

Unbounded backoff state from PRUNE messages for unknown topics

A PRUNE control message names topics and asks for a backoff on each. The handler recorded a backoff for every named topic, including topics the local node had never joined. A peer can send PRUNEs naming many new short topic IDs with a long backoff. Each pair is kept until the backoff expires, up to an hour, even after the peer disconnects, so a stream of PRUNEs, possibly from many peer IDs, can use up the node's memory. Peer scoring does not penalise these messages.

Recorded fixes — libp2p-gossipsub: 0.50.1. Check your release branch.

Exploitation not established

Affected range Recorded fix
From 0.0.0-0 before 0.50.1Semantic versions0.50.1

Version evidence: OSV · RUSTSEC-2026-0534

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.0.0-0"
        },
        {
          "fixed": "0.50.1"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
unknown
CVE-2026-95859Package fixes recorded

Unbounded memory growth from GRAFT messages for unsubscribed topics

When a GRAFT control message arrived, every topic it named was added to that peer's set of topics, on the assumption that a peer grafting us must be subscribed. Nothing checked that the peer had subscribed, and subscription filters only apply to SUBSCRIBE messages. A peer can keep sending GRAFTs with new short topic IDs over one connection, and the set grows until the peer unsubscribes or disconnects. Memory grows without bound and the node can be killed for running out of memory.

Recorded fixes — libp2p-gossipsub: 0.49.5. Check your release branch.

Exploitation not established

Affected range Recorded fix
From 0.0.0-0 before 0.49.5Semantic versions0.49.5

Version evidence: OSV · RUSTSEC-2026-0536

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.0.0-0"
        },
        {
          "fixed": "0.49.5"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
medium5.9
CVE-2026-34219Package fixes recorded

libp2p-gossipsub: Remote crash via unchecked Instant overflow in heartbeat backoff expiry handling

The Rust libp2p Gossipsub implementation contains a remotely reachable panic in backoff expiry handling. After a peer sends a crafted PRUNE control message with an attacker-controlled, near-maximum backoff value, the value is accepted and stored as an Instant near the representable upper bound. On a later heartbeat, the implementation performs unchecked Instant + Duration arithmetic (backoff_time + slack), which can overflow and panic with: overflow when adding duration to instant This issue is reachable from any Gossipsub peer over normal TCP + Noise + mplex/yamux connectivity and requires no further authentication beyond becoming a protocol peer.

Recorded fixes — libp2p-gossipsub: 0.49.4. Check your release branch.

Exploitation not established

Affected range Recorded fix
Earlier releases before 0.49.4Semantic versions0.49.4

Version evidence: OSV · GHSA-xqmp-fxgv-xvq5

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0"
        },
        {
          "fixed": "0.49.4"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
Affected range Recorded fix
From 0.0.0-0 before 0.49.4Semantic versions0.49.4

Version evidence: OSV · RUSTSEC-2026-0537

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.0.0-0"
        },
        {
          "fixed": "0.49.4"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
high8.7
CVE-2026-33040Package fixes recorded

Gossipsub PRUNE.backoff Duration Overflow

The Rust libp2p Gossipsub implementation accepts attacker-controlled PRUNE backoff values and may perform unchecked time arithmetic when storing backoff state. A specially crafted PRUNE control message with an extremely large backoff (e.g. u64::MAX) can lead to Duration/Instant overflow during backoff update logic, triggering a panic in the networking state machine. This is remotely reachable over a normal libp2p connection and does not require authentication.

Recorded fixes — libp2p-gossipsub: 0.49.3. Check your release branch.

Exploitation not established

Affected range Recorded fix
Earlier releases before 0.49.3Semantic versions0.49.3

Version evidence: OSV · GHSA-gc42-3jg7-rxr2

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0"
        },
        {
          "fixed": "0.49.3"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}
Affected range Recorded fix
From 0.0.0-0 before 0.49.3Semantic versions0.49.3

Version evidence: OSV · RUSTSEC-2026-0535

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.0.0-0"
        },
        {
          "fixed": "0.49.3"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}