CVE-2021-28681: Authorization bypass in github.com/pion/webrtc/v3
Summary
CVE-2021-28681: Authorization bypass in github.com/pion/webrtc/v3. Affects github.com/pion/webrtc/v3 versions < 3.0.15. Fixed in 3.0.15. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The package github.com/pion/webrtc/v3 is a Go library that provides WebRTC functionality. It allows developers to establish real-time communication between browsers or other applications using peer-to-peer connections. The package includes features such as DTLS transport, peer connections, data channels, and track management.
Vulnerability Detail
The vulnerability (CVE-2021-28681) in github.com/pion/webrtc/v3 is an authorization bypass issue. Due to improper error handling, DTLS connections were not terminated when certificate verification failed. This allowed users who did not check the connection state to continue using the connection. An attacker with the ICE password but without a valid certificate could exploit this vulnerability to bypass the certificate verification restriction. This could potentially lead to unauthorized access or data leakage.
How To Fix
Latest published version: v3.3.6 as of 23 Oct 2026
go get github.com/pion/webrtc/v3@v3.3.6
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.0.15
This is the first release that contains the fix.
go get github.com/pion/webrtc/v3@v3.0.15
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to update to the latest version of github.com/pion/webrtc/v3 as soon as possible.
Conclusion
The vulnerability in github.com/pion/webrtc/v3 (CVE-2021-28681) allows an attacker to bypass certificate verification and potentially gain unauthorized access or leak sensitive data. It is crucial for developers to update their implementation to version 3.0.15 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/pion/webrtc/v3 →
FAQ
github.com/pion/webrtc/v3 is a Go library that provides WebRTC functionality for establishing real-time communication between browsers or applications.
This vulnerability allows an attacker with the ICE password to bypass certificate verification and potentially gain unauthorized access or leak sensitive data.
To fix this vulnerability, update your implementation of github.com/pion/webrtc/v3 to version 3.0.15 or later.
There are no known workarounds for this vulnerability. It is recommended to update to the latest version of github.com/pion/webrtc/v3.
You can find more information about this vulnerability in the official CVE-2021-28681 advisory.