Verify evidence Search

Leaks

WebRTC leak

  • VPNL-G-004
  • Leaks
  • Version 1.1
  • Updated

Definition

A WebRTC leak is the exposure of a user’s local or public IP address to a website through the browser’s WebRTC connection set-up (ICE candidate gathering), which can reveal addresses that the VPN tunnel is meant to hide.

WebRTC leak explained

WebRTC lets browsers establish direct audio, video and data connections. To find a working path between two peers, the browser gathers “candidates” using the ICE framework (RFC 8445): addresses of local interfaces, and public addresses learned by asking STUN servers (RFC 8489). A web page can start this process with a few lines of JavaScript and read the resulting candidates.

If STUN requests leave through the physical interface instead of the tunnel, or if the browser exposes local interface addresses, a page can learn the user’s real public IP address or internal network addresses. RFC 8828 defines IP-address handling modes for browsers, and current browsers by default replace local addresses with random mDNS host names. This reduces the problem but does not remove it, particularly where policies, extensions or split tunnelling change the routing.

A WebRTC leak is a browser-level issue rather than a fault in the tunnel protocol, but the VPN client’s routing and firewall rules decide whether STUN traffic can escape. VPN browser extensions that only proxy the browser’s web traffic do not necessarily carry WebRTC’s UDP traffic, which makes them more exposed to this leak than a VPN that routes the whole device.

How VPN Labs tests it

VPN Labs runs a controlled ICE-gathering page in current stable releases of the major browsers with the tunnel up, records every candidate the page receives and compares the addresses with the device’s real public IPv4 and IPv6 addresses and local interfaces. The parallel packet capture shows whether STUN binding requests left outside the tunnel.

The methodology pages are the authoritative description of each procedure; this summary is for orientation.

Research on this topic

VPN Labs publications that discuss WebRTC leak in depth.

  • VPNL-R-2026-005

    IPv6 and WebRTC: the overlooked leak paths

    IPv6 and WebRTC are the two leak paths most often missed in VPN testing. On dual-stack networks a tunnel that carries only IPv4 leaves IPv6 traffic, and the…

Standards and references

  1. RFC 8828 — WebRTC IP Address Handling Requirements (external link)rfc-editor.org
  2. RFC 8445 — Interactive Connectivity Establishment (ICE) (external link)rfc-editor.org
  3. RFC 8489 — Session Traversal Utilities for NAT (STUN) (external link)rfc-editor.org

Cite this definition

VPN Network Research Labs. (2026). WebRTC leak. VPN Labs Glossary. https://vpn.com.de/glossary/webrtc-leak

Glossary v1.1 · term ID VPNL-G-004 · last updated . The definition may be quoted with attribution; report errors under the corrections policy.