Uncaught Exception Affecting @libp2p/webrtc package, versions <6.0.28


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.52% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LIBP2PWEBRTC-21200904
  • published18 Oct 2026
  • disclosed15 Oct 2026
  • creditAli Firas (thesmartshadow)

Introduced: 15 Oct 2026

NewCVE-2026-103936  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade @libp2p/webrtc to version 6.0.28 or higher.

Overview

@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.

CVSS Base Scores

version 4.0
version 3.1