Libp2p js-libp2p
libp2p: Circuit relay v2 server reservation refresh leaks abort listeners and allows remote resource exhaustion
libp2p is a JavaScript implementation of the libp2p networking stack. Prior to version 4.2.9, the reservation refresh path in reservation-store.ts reuses the same retimeableSignal but unconditionally registers another abort listener on every refresh. As a result, a remote peer can repeatedly send valid RESERVE requests for the same reservation, causing unbounded listener and closure growth in @libp2p/circuit-relay-v2 relay servers and leading to denial of service. This issue is fixed in version 4.2.9.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-400
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
libp2p js-libp2p
- >= 2.1.5, < 4.2.9
Fixed in 4.2.9
Mitigation
Upgrade js-libp2p to 4.2.9 or later.
References
- Vendor advisory github.com/libp2p/js-libp2p/security/advisorie…
- Patch github.com/libp2p/js-libp2p/commit/4bb8fbe8d3f…
- Release notes github.com/libp2p/js-libp2p/releases/tag/circu…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.