Advisory

RUSTSEC-2026-0534

Also known as: GHSA-vrx6-jcp8-vm7m

Summary

Unbounded backoff state from PRUNE messages for unknown topics

Details

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.

The fix ignores PRUNE entries for topics that are not in the node's mesh. It is in 0.50.1, and was backported to the main branch in libp2p/rust-libp2p#6707.

Severity

Not rated by the source.

Dates

Published
2026-10-19 12:00 UTC
Modified
2026-11-13 12:45 UTC

Affected packages and fixes

libp2p-gossipsub

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.50.1 (semver)

Fixed versions

0.50.1

Fix

  • Fixed version 0.50.1
    cargo update -p libp2p-gossipsub --precise 0.50.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences