RustSec Advisory Database
RUSTSEC-2026-0527
Rendezvous server stored an unlimited number of DISCOVER cookies
Details
Each DISCOVER request to a rendezvous server creates a pagination cookie, which the server kept in a map together with the registrations already returned for it. Entries were never evicted or capped, so an unauthenticated peer sending ordinary DISCOVER requests can make the server's memory grow without bound.
The fix keeps cookies in a fixed-size LRU cache (10,000 entries by default, configurable through Config). It is in 0.17.1.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | libp2p-rendezvous | From 0.0.0-0 before 0.17.1 (fixed in 0.17.1) |