The CVE record names WebRTC directly and says that checking the certificate fingerprint from the SDP does not stop the attack, because the attacker presents the genuine certificate. Pion DTLS 2.x has no fixed release, and the last Pion WebRTC 3.x release still uses it, so projects on those lines have to move to Pion WebRTC 4. The Pion DTLS advisory credits Anthropic's OSS Scanner, an AI vulnerability scanner, with the discovery.
Key Facts
Data as of December 1, 2026.
| Field | Details |
|---|---|
| CVE | CVE-2026-135388 |
| Product | Pion DTLS (Go modules github.com/pion/dtls/v2 and github.com/pion/dtls/v3), the DTLS library of Pion WebRTC: handshake signature verification |
| Affected versions | Pion DTLS 3.0.0 to 3.1.12 and 2.0.0 to 2.2.12 (CVE record). Pion WebRTC releases up to 4.2.23 on the v4 line, and every 3.x release, require an affected version; your own build decides which version ships (see Who Is Affected) |
| Fixed in | Pion DTLS 3.1.13; 3.1.16 is the version to take (see How to Fix It). No fixed 2.x release. Pion WebRTC 4.2.24 and later require a fixed version. The newer github.com/pion/dtls/v4 line has the fix from v4.0.0-rc.6 |
| Condition | "An unauthenticated network attacker who can redirect a DTLS handshake and obtain the genuine peer certificate" (CVE record). Checking the WebRTC SDP certificate fingerprint does not prevent the attack |
| Severity | CVSS 3.1: 9.1 Critical (GitHub, the CNA), AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. NVD has not provided its own score. CISA's SSVC assessment: exploitation none, automatable yes, technical impact total. Ubuntu priority: medium |
| Exploitation | Not in the CISA KEV catalog. EPSS 0.0035 (0.35%), 21st percentile. No public exploit code found on GitHub |
| Found by | "Anthropic's OSS Scanner, tracking ID 0Q4PYECH" (Pion DTLS advisory). The CVE record lists no credits |
| Role of AI | The advisory names Anthropic's OSS Scanner, an AI system, as the finder |
| Weakness | CWE-347, improper verification of cryptographic signature |
| Disclosed | Fix and release on October 16, 2026; CVE record on November 24, 2026 |
| Related CVEs | Five more CVEs from the same scanner, fixed in Pion DTLS 3.1.13 and 3.1.14, among them the Critical CVE-2026-135389 (table below) |
Who Is Affected
A Go program needs attention if it compiles in Pion DTLS 2.x, or 3.x below 3.1.13, and uses DTLS with certificates. For an attack, the CVE record adds that the attacker must be able to redirect the handshake and have the peer's genuine certificate. The fix covers signatures checked in both directions, by clients and by servers, and the CVE record names WebRTC as a case, so Pion-based WebRTC servers and clients are in scope.
Our reading of the condition is that redirecting a handshake takes a position on the network path between the peers, or control of a relay the traffic passes through. We also read this CVE as not covering handshakes that use only pre-shared keys, since those carry no certificate signatures, but other CVEs from the same batch do (see the table below).
What the attacker gets depends on what the application sends over DTLS. In WebRTC, the DTLS handshake sets up the keys for audio and video (DTLS-SRTP, RFC 5764), and data channels run over DTLS too (RFC 8827). In our reading, an attacker who passes as the peer can receive the media and data-channel messages sent on that connection and send traffic that the endpoint takes as the peer's. For other applications, the consequences depend on what they send over DTLS.
Pion DTLS usually comes in through Pion WebRTC and the products built on it. Below are the versions that recent releases require; we did not test whether the products themselves can be attacked:
- Pion WebRTC 4. Every release from 4.2.24 carries a fixed Pion DTLS; 4.2.27 (November 18) and later carry 3.1.16.
- Pion WebRTC 3. The latest 3.x release, 3.3.6 of July 30, 2025, requires Pion DTLS 2.2.12.
- MediaMTX 1.21.4, go2rtc 1.10.0 and Galène 1.2.2 require Pion DTLS 3.1.15 or 3.1.16.
- LiveKit server v1.13.11 (October 25), the latest release, replaces Pion DTLS with LiveKit's fork at v3.1.5-warp.3, dated September 28, before the fix. The main branch dropped the fork on November 5 and now uses Pion DTLS 4.0.2 and 3.1.15, but no release includes that change yet.
- go-libp2p v0.52.0 (November 14) requires Pion WebRTC 4.1.2 and Pion DTLS 3.1.2. An upgrade to Pion WebRTC 4.2.26 during that release was reverted the same day after WebRTC tests failed (go-libp2p issue of November 29). An open pull request moves go-libp2p to Pion WebRTC 4.1.7, which still requires Pion DTLS 3.0.8.
- Debian lists its
golang-github-pion-dtls-v3andgolang-github-pion-dtls.v2source packages as vulnerable with no fix yet. Ubuntu marks the packages it ships as needing triage.
Check the Build, Not the Dependency List
A dependency's go.mod does not settle which Pion DTLS ends up in a binary. For each module path, Go builds a program with the highest version that anything in the build requires, so an application that uses go-libp2p but also requires Pion DTLS 3.1.16 gets 3.1.16. The /v2, /v3 and /v4 paths are separate modules, so raising one does not touch the others. A replace directive in the main module works the other way and swaps in other code for the module, such as a fork, another version or a local directory. In the LiveKit server v1.13.11 binary, go version -m shows Pion DTLS v3.1.9 followed by => github.com/livekit/dtls/v3 v3.1.5-warp.3, and the fork after the arrow is what was compiled.
How to Check Your Systems

1. Check the version Go selects in your source. Run these in every module you build:
# Pion DTLS modules in the selected module list, with their versions
go list -m all | grep 'pion/dtls'
# An import path that pulls it in (use the module path you found)
go mod why -m github.com/pion/dtls/v3
Any github.com/pion/dtls/v2 line is in scope, and so is github.com/pion/dtls/v3 below v3.1.13. The newer github.com/pion/dtls/v4 line is not listed in the CVE record, but its pre-releases before v4.0.0-rc.6 do not have the fix; v4.0.0 and later do. A line with => comes from a replace directive, and the module after the arrow is what gets compiled, so check that fork for the fix. If go list itself fails, the check did not run. go mod why also counts imports from tests, so step 2 is what shows the code you ship.
2. Check what you actually deploy. A Go binary records the modules it was built with, so you can read them from the file itself, including binaries from vendors and container images:
# A binary on disk: the full module list first, then the Pion DTLS lines
go version -m ./server
go version -m ./server | grep -A1 'pion/dtls'
# A binary inside an image: find its path, copy it out, then read it
docker inspect -f '{{json .Config.Entrypoint}}' registry.example.com/server:tag
id=$(docker create registry.example.com/server:tag)
docker cp "$id":/server ./server-from-image && go version -m ./server-from-image | grep -A1 'pion/dtls'
docker rm "$id"
Replace /server with the binary's path in the image. The -A1 keeps the line after the match, where a => replacement appears. go version -m needs a Go toolchain, but it also reads stripped binaries and binaries built for other operating systems. If the full command fails or prints no dep lines, the binary carries no module information and the check is inconclusive, not clean. If it prints dep lines but none for pion/dtls, that binary does not include Pion DTLS.
3. Do not rely on govulncheck for this one yet. The Go vulnerability database, which govulncheck reads, does not list CVE-2026-135388 yet, so a clean govulncheck run says nothing about this CVE.
How to Fix It
Update Pion DTLS to 3.1.16 in every module you build, rebuild, redeploy, and run step 2 on the binary you deployed:
go get github.com/pion/webrtc/v4@latest # if you use Pion WebRTC 4; 4.2.27+ requires Pion DTLS 3.1.16
go get github.com/pion/dtls/v3@v3.1.16
go mod tidy
- Why 3.1.16 and not 3.1.13. 3.1.13 fixes this CVE, and 3.1.14 adds the fixes for CVE-2026-135389 and CVE-2026-135390. A change in 3.1.13 also affected early application data in DTLS 1.2. The maintainer later wrote that early data "was temporarily disabled because of two security issues", and a user reported that records arriving in a short window at the end of the handshake could be discarded with no error (pion/dtls issue #1297). 3.1.16 allows early data again with a buffer of up to 100 records and closes that report.
- If a dependency holds Pion WebRTC back. If your build uses
github.com/pion/dtls/v3and noreplacefor it, require v3.1.16 in your owngo.mod; Go then selects at least 3.1.16. That pairing was not released together upstream, so run your tests. This does not change a/v2dependency. - Pion DTLS 2.x and Pion WebRTC 3.x. There is no fix. The last 2.x release, 2.2.12, dates from July 20, 2024. Move to Pion WebRTC 4 and Pion DTLS 3, which means new import paths (
/v4,/v3) and code changes. - Forks. If your
go.modreplaces Pion DTLS with a fork, the fork needs the fix commit "Validate handshake signature against certificate keys" (cb56053), or drop thereplace. - Products you run but do not build. Check the binary from the release you deploy with step 2. For LiveKit server and go-libp2p, watch for a release with a fixed Pion DTLS, whether upstream or in a fork.
The advisory lists no workaround.
All CVEs Fixed in Pion DTLS 3.1.13 and 3.1.14
All six advisories, published on October 16, credit Anthropic's OSS Scanner; the CVE records followed on November 24. All six CVEs also affect releases on the 2.x line, from different starting versions and with no 2.x fix, and Pion DTLS 3.1.14 or later fixes all of them. Scores are the CNA's, from the CVE records:
| CVE | What goes wrong | When it applies | CVSS (CVE record) | Fixed in |
|---|---|---|---|---|
| CVE-2026-135388 | Handshake signatures are checked without tying the signature scheme to the certificate's key, so an attacker can pose as a peer | Certificate handshakes, WebRTC included; the attacker can redirect the handshake and has the peer's genuine certificate | CVSS 3.1: 9.1 | 3.1.13 |
| CVE-2026-135389 | A server caches a session before client authentication finishes, so an attacker can resume it without a client certificate and get access to application data | A server with a session store, a certificate cipher suite and required client certificates; the same mechanism can bypass a rejecting VerifyConnection callback. The advisory says "This doesn't affect webrtc users" |
CVSS 3.1: 9.1 | 3.1.14 |
| CVE-2026-135390 | Client and server sessions are not told apart, so a malicious server the application once connected to can reuse that session on the application's listener and skip its PSK or client-certificate check, which gives that server access to the listener | One session store shared by outbound connections and a listener; "This doesn't affect webrtc users" | CVSS 3.1: 7.4 | 3.1.14 |
| CVE-2026-135391 | Unusually large RSA keys in a peer certificate make signature checks use excessive CPU; repeated or concurrent handshakes can delay legitimate connections and reduce availability | A peer that reaches the handshake and triggers an RSA verification path; the advisory says WebRTC applications can be affected | CVSS 4.0: 6.9 (the repository advisory says High) | 3.1.13 |
| CVE-2026-135392 | The handshake cache has no limit, so a remote peer can exhaust memory and cause a denial of service | A peer that reaches the handshake | CVSS 4.0: 8.7 | 3.1.13 |
| CVE-2026-135393 | A server processes the client's certificate flight again and again while waiting for Finished, which uses excessive CPU; repeated or concurrent attempts can delay legitimate connections and reduce availability | The DTLS server side, including Pion WebRTC applications acting as the DTLS server, per the advisory. Also lists Pion DTLS 1.2.2 to 1.5.4 | CVSS 4.0: 6.9 | 3.1.13 |
Every affected build carries the same 9.1, so the score will not tell you where to start. I would start with the services where the fix is not a version bump: anything still on Pion WebRTC 3 or Pion DTLS 2. Those teams face a migration with code changes, and the sooner it is planned, the shorter the time they run without a fix. Everywhere else the update is a version bump plus a test run, and the slow part is finding which binaries carry the library. I would make reading module versions from release binaries a standing step of the build pipeline, not a one-off for this CVE.
Aleksandr MelnichukCPO, Project Director
How the Bug Works
In a DTLS 1.2 handshake with certificates, each side proves that it holds the private key behind its certificate by signing handshake data. The server signs its key exchange parameters in the ServerKeyExchange message; a client with a certificate signs the handshake so far in CertificateVerify. Each signature comes with a signature scheme, the algorithm and hash that the sender says it used.
According to the CVE record, Pion DTLS chose how to verify the signature from the type of the certificate's public key, but took the digest from the scheme that the peer sent, and never checked that the two fit together. The fix adds that check, which the commit message describes as rejecting "mismatched key types, digest-less RSA/ECDSA schemes, and inconsistent RSA-PSS hashes".
A test added with the fix says a valid signature "must not authenticate a different scheme, or an empty digest in place of the handshake transcript." In our reading, without the check a signature could be verified against something other than the handshake data, which fits what the advisory reports: "The same forged signature was accepted for two different handshake messages, confirming that verification was independent of the transcript."
How It Was Found and Fixed
The report date is not public. The public record starts when Pion joined the scanner:
- October 9, 2026. A Pion maintainer opens a pull request to enrol pion/dtls in Anthropic's OSS Scanner, confirming "I am a core maintainer of this project". It is merged on October 10.
- October 16. An issue titled "Fix all issues reported by anthropics/oss-scanner" is opened at 07:09 UTC. The pull request with the fix for this CVE is merged into the v3 branch at 08:58, Pion DTLS 3.1.13 is released at 09:14, Pion WebRTC 4.2.24 follows at 09:28, and GitHub records the advisory as published in the repository at 10:16. Pion DTLS 3.1.14, with the session fixes, follows at 16:39 UTC, and the v4 line gets the fix in v4.0.0-rc.6 that evening.
- November 17. Pion DTLS 3.1.16 restores early application data in DTLS 1.2.
- November 24. The CVE record is published.
- November 30. GitHub adds the advisory to its global advisory database.

The fixes are by Pion maintainer Jo Turk, who describes them in the v3 pull request as "All the issues i could verify that affects v3 and webrtc." Anthropic launched OSS Scanner on October 8 as an opt-in service and says that projects that join "will receive thorough, periodic security scans by our strongest models". The README of the scanner's enrolment repository adds that reports "are model-generated and are not reviewed by a human."
What This Says about AI Bug Hunting
Pion's maintainers opened the tracking issue, merged the fix and released Pion DTLS 3.1.13 on the same day, October 16. The CVE record came 39 days later. A tool that reads only CVE records or the Go vulnerability database had nothing to show in that window, while the commit messages said plainly what had been fixed.
In our reading, when finding bugs gets cheaper, the time between a public fix and your rebuild matters more, and for a Go library that time is set in your own build. The latest releases of go-libp2p and LiveKit server still carry an older Pion DTLS weeks after the fix.
Where Topscan.me Fits
This bug was in a public library, so it got an advisory, a CVE number and, in time, database entries. Bugs in your own application rarely get any of those. Topscan.me AI Pentest points AI at your own web application. It reads your code, attacks your running app and proves every confirmed finding with the real request and response.
Topscan.me SAST scans the repositories you connect, including dependency files such as go.mod, and reports vulnerable packages as Dependency findings.
Sources
- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-135388
- Pion DTLS security advisory GHSA-7c2r-jhm9-43vf: https://github.com/pion/dtls/security/advisories/GHSA-7c2r-jhm9-43vf
- Fix commit in the v3 branch: https://github.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87
- Pull request with the v3 fixes: https://github.com/pion/dtls/pull/1229
- Tracking issue "Fix all issues reported by anthropics/oss-scanner": https://github.com/pion/dtls/issues/1228
- Pion DTLS 3.1.13 release: https://github.com/pion/dtls/releases/tag/v3.1.13
- Pion DTLS 3.1.16 release: https://github.com/pion/dtls/releases/tag/v3.1.16
- Pion DTLS issue #1297, records dropped after the handshake: https://github.com/pion/dtls/issues/1297
- Pion DTLS pull request #1298, early application data: https://github.com/pion/dtls/pull/1298
- Pion WebRTC releases: https://github.com/pion/webrtc/releases
- Pion WebRTC 3.3.6 module file: https://github.com/pion/webrtc/blob/v3.3.6/go.mod
- CVE records for the related CVEs: https://www.cve.org/CVERecord?id=CVE-2026-135389 to https://www.cve.org/CVERecord?id=CVE-2026-135393
- Pion DTLS security advisories: https://github.com/pion/dtls/security/advisories
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-135388
- CISA Known Exploited Vulnerabilities Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- FIRST EPSS API: https://api.first.org/data/v1/epss?cve=CVE-2026-135388
- Debian security tracker: https://security-tracker.debian.org/tracker/CVE-2026-135388
- Ubuntu CVE page: https://ubuntu.com/security/CVE-2026-135388
- Go vulnerability database: https://pkg.go.dev/vuln/
- Go modules reference, minimal version selection and replace: https://go.dev/ref/mod
go version -m, Go command documentation: https://pkg.go.dev/cmd/go#hdr-Print_Go_version- RFC 5764, DTLS extension to establish keys for SRTP: https://www.rfc-editor.org/rfc/rfc5764
- RFC 8827, WebRTC security architecture: https://www.rfc-editor.org/rfc/rfc8827
- LiveKit server v1.13.11 module file: https://github.com/livekit/livekit/blob/v1.13.11/go.mod
- LiveKit server main branch module file: https://github.com/livekit/livekit/blob/master/go.mod
- go-libp2p v0.52.0 module file: https://github.com/libp2p/go-libp2p/blob/v0.52.0/go.mod
- go-libp2p issue #3602: https://github.com/libp2p/go-libp2p/issues/3602
- go-libp2p pull request #3603: https://github.com/libp2p/go-libp2p/pull/3603
- Pion WebRTC 4.1.7 module file: https://github.com/pion/webrtc/blob/v4.1.7/go.mod
- MediaMTX 1.21.4 module file: https://github.com/bluenviron/mediamtx/blob/v1.21.4/go.mod
- go2rtc 1.10.0 module file: https://github.com/AlexxIT/go2rtc/blob/v1.10.0/go.mod
- Galène 1.2.2 module file: https://github.com/jech/galene/blob/galene-1.2.2/go.mod
- Anthropic, "An opt-in vulnerability-finding service for open-source software", October 8, 2026: https://www.anthropic.com/research/launching-opt-in-vuln-finding-service-for-open-source
- Anthropic OSS Scanner enrolment repository: https://github.com/anthropics/oss-scanner
- Pull request enrolling pion/dtls: https://github.com/anthropics/oss-scanner/pull/93



