CVE-2021-28681: Authorization bypass in github.com/pion/webrtc/v3

github.com/pion/webrtc/v3 Updated 02 Oct 2025

Summary

28/07/2021
Yes i
Moderate
5.3

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback