@libp2p/circuit-relay-v2@3.2.23-cf9aab5c8

Implementation of Circuit Relay v2

  • latest version

    4.2.12

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    2 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @libp2p/circuit-relay-v2 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 Resource after Effective Lifetime

    @libp2p/circuit-relay-v2 is an Implementation of Circuit Relay v2

    Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime through the reserve() path in packages/transport-circuit-relay-v2/src/server/reservation-store.ts. An attacker can grow memory usage and eventually trigger an out-of-memory failure by repeatedly sending valid RESERVE refresh requests for the same relay reservation. The reservation store reuses the same abort signal when a reservation is refreshed, but it still registers a new abort listener on each successful refresh. A peer that can reserve on a public relay can keep one reservation entry alive while accumulating unbounded listeners and closure state, causing sustained heap growth and service degradation.

    How to fix Missing Release of Resource after Effective Lifetime?

    Upgrade @libp2p/circuit-relay-v2 to version 4.2.9 or higher.

    >=2.1.5 <4.2.9