@libp2p/gossipsub@15.0.22

A typescript implementation of gossipsub

  • latest version

    15.0.23

  • latest non vulnerable version

  • first published

    8 months ago

  • latest version published

    9 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @libp2p/gossipsub package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Missing Release of Memory after Effective Lifetime

    @libp2p/gossipsub is an A typescript implementation of gossipsub

    Affected versions of this package are vulnerable to Missing Release of Memory after Effective Lifetime through unbounded growth of the topics data structure when processing subscription requests. An attacker can exhaust system memory and cause a process crash by sending a large number of unique topic subscriptions in a single RPC frame, leading to significant heap consumption and eventual out-of-memory termination. Memory is not reclaimed even after the attacker disconnects, as empty Sets persist in the topics map for the lifetime of the process.

    How to fix Missing Release of Memory after Effective Lifetime?

    Upgrade @libp2p/gossipsub to version 15.0.23 or higher.

    <15.0.23