CriticalGHSA-hhpj-h56m-9f2pCVE-2026-135389

Pion DTLS: Client authentication bypass through premature DTLS 1.2 session caching

Published 3 Dec 2026 · Updated 3 Dec 2026

Affected packages

Affected
>=2.1.0 <=2.2.12
Fixed in
No fix released
Affected
<3.1.14
Fixed in
3.1.14
Update to the fixed version for your release line, for example:go get github.com/pion/dtls/v3@v3.1.14
Affected
<4.0.0-rc.6
Fixed in
4.0.0-rc.6
Update to the fixed version for your release line, for example:go get github.com/pion/dtls/v4@v4.0.0-rc.6

We confirm your address first. See our privacy policy.

Which github.com/pion/dtls/v2 does your project really install?

Drop your go.mod hereWe find the exact github.com/pion/dtls/v2 version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads other package files.

Public repo?

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

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

Is GHSA-hhpj-h56m-9f2p in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/pion/dtls/v2, and gives you the command that fixes it.

More advisories for github.com/pion/dtls/v2

  • HighCVE-2026-135390Pion DTLS: Client authentication bypass when client and server connections share a session store · 3 Dec 2026
  • MediumCVE-2026-135393Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes · 2 Dec 2026
  • MediumCVE-2026-135391Pion DTLS: Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes · 2 Dec 2026
  • HighCVE-2026-135392Pion DTLS: Unbounded handshake cache allows remote memory exhaustion · 2 Dec 2026
  • CriticalCVE-2026-135388Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation · 30 Nov 2026
  • LowCVE-2026-26014Usage of random nonce generation with AES GCM ciphers risks leaking the authentication key in github.com/pion/dtls · 19 Feb 2026
All 18 advisories for github.com/pion/dtls/v2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.