@libp2p/webrtc@6.0.27-382fbb4ca

A libp2p transport using WebRTC connections

  • latest version

    7.0.2

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @libp2p/webrtc 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
    Uncaught Exception

    @libp2p/webrtc is an A libp2p transport using WebRTC connections

    Affected versions of this package are vulnerable to Uncaught Exception via the STUN listener in stun-listener.ts, where an unvalidated ufrag value from an incoming STUN request is passed directly into the native ICE stack as both the ICE username fragment and password. Because the ufrag is reused as icePwd without checking that it satisfies RFC 8445 ICE credential requirements, a remote attacker can send a STUN request carrying a malformed ufrag value that causes the native ICE stack to abort, crashing the WebRTC-direct listener process.

    How to fix Uncaught Exception?

    Upgrade @libp2p/webrtc to version 6.0.28 or higher.

    <6.0.28