CVE-2026-135389: Pion DTLS Authentication Bypass Vulnerability

CRITICAL
Advisory Identifier: GHSA-hhpj-h56m-9f2p
CVSS 9.1
CWE-287
Published
Advisory Summary

CVE-2026-135389 is a CRITICAL (CVSS 9.1) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Pion DTLS libraries in the Go ecosystem. The issue involves client authentication bypass through premature dtls 1.2 session caching. Remediation is available by upgrading affected packages to version 3.1.14, 4.0.0-rc.6.

CVE-2026-135389 at a Glance

CVE Identifier CVE-2026-135389
GHSA Identifier GHSA-hhpj-h56m-9f2p
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-287: Improper Authentication
Affected Product Pion DTLS
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-135389

To remediate this vulnerability, upgrade all affected Pion DTLS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/pion/dtls/v2 fixed: Latest secure release
Upgrade github.com/pion/dtls/v2 to Latest secure release
github.com/pion/dtls/v3 fixed: 3.1.14
Upgrade github.com/pion/dtls/v3 to 3.1.14
github.com/pion/dtls/v4 fixed: 4.0.0-rc.6
Upgrade github.com/pion/dtls/v4 to 4.0.0-rc.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/pion/dtls/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-135389, inspect your project dependencies for Pion DTLS:

inspect dependencies for github.com/pion/dtls/v2

Analyze the terminal output to locate any version of Pion DTLS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.14), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Pion DTLS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Pion DTLS saves resumable sessions before the original handshake has completed client authentication. An unauthenticated attacker can create an unfinished session and then resume it to bypass required client-certificate authentication. This doesn't affect webrtc users. Discovered by Anthropic's OSS Scanner `ANT-2026-8ECSI13S` ### Details Affected servers must enable a SessionStore, negotiate a certificate-based cipher suite, and require client certificates through RequireAnyClientCert or RequireAndVerifyClientCert. The same mechanism can bypass a rejecting VerifyConnection callback. The server stores the session ID and master secret after processing ClientKeyExchange, before receiving and validating the client's Finished message and enforcing the final authentication checks. ### Impact An attacker can omit the client Certificate message, send ClientKeyExchange, and leave the handshake unfinished. Because the attacker participated in the key exchange, it knows the resulting master secret. It can then open another connection and resume the cached session. The abbreviated handshake validates possession of that secret without enforcing the original client-authentication requirements. fixed by https://github.com/pion/dtls/commit/ce84b979bcb5449727b3ea5c57add4e1edb33284

CVE-2026-135389 Affected Pion DTLS Versions

3 component(s)
Fixed Versions:
3.1.144.0.0-rc.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/pion/dtls/v2
Go
≥ 2.1.0
≤ 2.2.12
github.com/pion/dtls/v3
Go
< 3.1.14
3.1.14
github.com/pion/dtls/v4
Go
< 4.0.0-rc.6
4.0.0-rc.6

References

Frequently Asked Questions

What is CVE-2026-135389?
CVE-2026-135389 is a security vulnerability in Pion DTLS involving Client authentication bypass through premature DTLS 1.2 session caching under CWE-287: Improper Authentication.
Which Pion DTLS versions are affected?
Affected versions include releases prior to 3.1.14, 4.0.0-rc.6 across affected packages: github.com/pion/dtls/v2, github.com/pion/dtls/v3, github.com/pion/dtls/v4.
What version fixes CVE-2026-135389?
Upgrading to 3.1.14, 4.0.0-rc.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/pion/dtls/v2 affected?
Yes, github.com/pion/dtls/v2 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/pion/dtls/v3 affected?
Yes, github.com/pion/dtls/v3 is affected in releases prior to 3.1.14. Upgrade your dependency to 3.1.14 or later.
What is the CVSS score of CVE-2026-135389?
CVE-2026-135389 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-135389?
CVE-2026-135389 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2026-135389?
Run the dependency tree command: 'inspect dependencies for github.com/pion/dtls/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hhpj-h56m-9f2p",
  "modified" : "2026-12-03T01:50:44Z",
  "published" : "2026-12-03T01:50:44Z",
  "aliases" : [ "CVE-2026-135389" ],
  "summary" : "Pion DTLS: Client authentication bypass through premature DTLS 1.2 session caching",
  "details" : "### Summary\n\nPion DTLS saves resumable sessions before the original handshake has completed client authentication. An unauthenticated attacker can create an unfinished session and then resume it to bypass required client-certificate authentication. This doesn't affect webrtc users.\n\nDiscovered by Anthropic's OSS Scanner `ANT-2026-8ECSI13S`\n\n### Details\n\nAffected servers must enable a SessionStore, negotiate a certificate-based cipher suite, and require client certificates through RequireAnyClientCert or RequireAndVerifyClientCert. The same mechanism can bypass a rejecting VerifyConnection callback.\n\nThe server stores the session ID and master secret after processing ClientKeyExchange, before receiving and validating the client's Finished message and enforcing the final authentication checks.\n\n### Impact\n\nAn attacker can omit the client Certificate message, send ClientKeyExchange, and leave the handshake unfinished. Because the attacker participated in the key exchange, it knows the resulting master secret. It can then open another connection and resume the cached session. The abbreviated handshake validates possession of that secret without enforcing the original client-authentication requirements.\n\nfixed by https://github.com/pion/dtls/commit/ce84b979bcb5449727b3ea5c57add4e1edb33284",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "last_affected" : "2.2.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-rc.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/security/advisories/GHSA-hhpj-h56m-9f2p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-135389"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/pull/1234"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/commit/410ac0ef28df49757d3a695c10dda75137e1dbf2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/commit/ce84b979bcb5449727b3ea5c57add4e1edb33284"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pion/dtls"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/releases/tag/v3.1.14"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T01:50:44Z",
    "nvd_published_at" : "2026-11-24T17:18:24Z"
  }
}