On this page (7 sections)

A critical vulnerability in Pion DTLS, a Go implementation of Datagram Transport Layer Security, lets an attacker pass the handshake as another party without holding that party's private key. The flaw is tracked as CVE-2026-135388 and rated 9.1 (critical). The v3 line is fixed in version 3.1.13, while the GitHub advisory lists no patched version for the v2 line.

If you build WebRTC services, media gateways, IoT back ends or any Go software that terminates DTLS, this is worth checking today. Many teams pull Pion in as an indirect dependency, so you may be running it without having chosen it.

What happened

According to the GitHub advisory, Pion DTLS did not consistently check that the signature scheme offered in a handshake matched the certificate's public key type and the required hash algorithm. That gap lets an attacker skip the proof that they own the certificate's private key. The advisory says the issue was discovered by Anthropic's OSS Scanner (tracking ID 0Q4PYECH) and credits JoTurk as the remediation developer.

The advisory was published in the pion/dtls repository on October 16, 2026, reached the National Vulnerability Database on November 24, 2026, and was reviewed in the GitHub Advisory Database on November 30, 2026. The research for this article contains only the GitHub advisory and the CVE record. There is no independent reporting and no reported incident to point to.

How the weakness works

In a DTLS handshake, each side proves it owns its certificate by signing handshake data with the matching private key. The verifier must then check that signature using an algorithm consistent with the certificate. Think of checking an ID: you need to confirm the document is genuine and that it belongs to the person standing in front of you.

Per the advisory, the vulnerable code chose the verification primitive from the certificate's public key type, but took the digest from the signature scheme the peer itself supplied. It never confirmed that the scheme, key type and hash requirements agreed. The advisory states that a signature constructed solely from an ECDSA P-256 certificate's public key was accepted by both affected functions:

  • verifyKeySignature, used for ServerKeyExchange
  • verifyCertificateVerify, used for CertificateVerify

The same forged signature was also accepted for two different handshake messages, which the advisory says confirms that verification did not depend on the handshake transcript. This article does not describe how to build such a signature; the point for defenders is that the check which should prove key possession can be satisfied without the key.

Who is affected and what is the impact

According to the advisory, the attacker needs to be able to redirect the victim's DTLS handshake and to have access to the peer's public certificate. Certificates are public by design, so the second condition is usually easy. The first means a network position such as a compromised router, hostile Wi-Fi, a malicious relay or DNS or routing manipulation (these examples are our illustration, not from the advisory). The CVSS vector lists no privileges and no user interaction, but that network position is a real precondition.

If the attack works, the attacker can impersonate the peer and compromise the confidentiality and integrity of protected traffic, per the CVE record. One point matters for WebRTC: both the advisory and the CVE record say that checking the SDP certificate fingerprint does not stop the attack, because the attacker presents the genuine certificate. Availability is not affected according to the CVSS vector.

Pion DTLS module lines and their status
ModuleVulnerable rangePatched version
github.com/pion/dtls/v3>= 3.0.0, < 3.1.133.1.13
github.com/pion/dtls/v2>= 2.0.0, <= 2.2.12None listed in the advisory
The CVE record's description says the issue spans 2.0.0 until 3.1.13, while the GitHub advisory splits it into the v2 and v3 module paths shown above. Use the module ranges in the table when checking your projects.

How to check your exposure

Pion DTLS is a Go module, so your go.mod and build metadata show whether you use it. Run the first command in a project's root directory. It prints the module graph and filters for Pion DTLS, so you can see whether it appears directly or through another dependency, and at which version.

List Pion DTLS versions in a Go project's dependency graph (run in the project root)Shell
go list -m all | grep pion/dtls

Compiled Go binaries embed their module versions. If you only have a deployed binary, this command reads that build information without running the program. Replace the path with your binary; look for a github.com/pion/dtls line and compare its version to the table above.

Show modules embedded in a compiled Go binary (read-only)Shell
go version -m /path/to/your-binary | grep pion/dtls

To see why a particular version is being pulled in, this command explains which packages in your build depend on it.

Show which packages depend on Pion DTLS (run in the project root)Shell
go mod why -m github.com/pion/dtls/v3

What to do now

  1. Inventory every Go service, gateway and device firmware you build or run that handles DTLS or WebRTC, including ones that only pull Pion in indirectly.
  2. Run the dependency checks above and note any github.com/pion/dtls/v3 below 3.1.13 or any github.com/pion/dtls/v2 at 2.2.12 or earlier.
  3. Upgrade v3 users to 3.1.13 or later, rebuild, and redeploy the resulting binaries or images.
  4. If you use v2, contact the Pion project about a fix, since the advisory lists no patched v2 release and the research gives no fix timeline or migration guidance. Moving to the fixed v3 line is the practical option we would consider, but that is our suggestion, not project guidance.
  5. Ask vendors of products that embed Pion whether they ship a build that includes 3.1.13 or later, and track their answer.
  6. Do not treat SDP fingerprint pinning as a mitigation; the advisory states it does not prevent this attack.
  7. Where possible, reduce exposure of DTLS endpoints to untrusted network paths until you have upgraded.

This command updates the v3 module to the fixed release and rewrites go.mod and go.sum. Run it in the project root, then review the diff, run your tests and rebuild.

Caution. Upgrading a cryptographic library can change behavior in handshakes. Test against your real clients and peers in staging before rolling out, and keep a rollback build ready.
Upgrade Pion DTLS v3 to the fixed version (run in the project root)Shell
go get github.com/pion/dtls/v3@v3.1.13
go mod tidy
Tip. The advisory also references a v4.0.0-rc.6 release tag. It is a release candidate and the research does not say how it relates to this fix, so confirm with the project whether it fits your stability needs before choosing it over 3.1.13.

Detection and monitoring

The research does not describe any log signature or indicator of compromise for this flaw. Because a forged signature is accepted as if it were valid, you should not expect obvious handshake errors. Practical monitoring is therefore about reducing the chance and spotting the surrounding conditions:

  • Watch for unexpected peers, endpoints or relay addresses in WebRTC and DTLS session logs, and for sessions that terminate at hosts you do not recognize.
  • Alert on unexpected DNS or routing changes for the hostnames your DTLS services use, since redirecting the handshake is a precondition.
  • Add Go dependency scanning to CI so a vulnerable Pion version fails the build, and subscribe to the project's security advisories.
  • Track the advisory page for updates, especially for the v2 line, where no fix is listed today.

For the web-facing parts of your stack, Webforta Monitor can alert you to DNS and certificate changes, and the free SSL checker helps verify the certificates your public endpoints present. These do not detect this library flaw, which lives inside application code, so keep dependency scanning as your primary control.

Timeline

Summary
DateEvent
Oct 16, 2026Advisory published in the pion/dtls repository
Nov 24, 2026Published by the National Vulnerability Database
Nov 30, 2026Added to and reviewed in the GitHub Advisory Database

For broader habits that catch dependency problems early, see our guide on small business website security and the security guides hub.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-135388 - GitHub Advisory Databasegithub.com
  • Pion DTLS
  • WebRTC
  • Go
  • CVE-2026-135388
  • TLS