mediasoup: SCTP state cookie lacks cryptographic authentication, enabling unauthorized association establishment (RFC 9260 violation)
Published Aug 25, 2026
5.6
MEDIUMCVSS 3.1
EPSS 0.19%
Description
mediasoup is a WebRTC video conferencing system. From version 3.20.0 until 3.20.6 for the npm package and from 0.22.0 until 0.22.5 for the Rust crate, mediasoup's built-in SCTP stack authenticates state cookies using only the hardcoded msworker and 0xAD81 magic values instead of a per-instance secret and HMAC, contrary to RFC 9260 Section 5.1.3. The cookie structure and validation in worker/include/RTC/SCTP/association/StateCookie.hpp and worker/src/RTC/SCTP/association/StateCookie.cpp allow an on-path attacker targeting PlainTransport or PipeTransport with SCTP enabled and without DTLS protection to forge a COOKIE-ECHO whose packet verification tag matches the attacker-controlled localVerificationTag. The forged cookie passes StateCookie::IsMediasoupStateCookie() and Association::HandleReceivedCookieEchoChunk(), establishes an unauthorized SCTP association, and permits DataChannel message injection as a trusted peer. WebRtcTransport is not affected because its SCTP runs inside DTLS. This issue is fixed in npm version 3.20.6 and Rust crate version 0.22.5.
Affected products
-
- Version >= 0.22.0, < 0.22.5StatusaffectedConstraints-
- Version >= 3.20.0, < 3.20.6StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
mediasoup
npm
Introduced 3.20.0 Fixed 3.20.6mediasoup
crates.io
Introduced 0.22.0 Fixed 0.22.5
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | mediasoup | 3.20.0 | 3.20.6 |
| crates.io | mediasoup | 0.22.0 | 0.22.5 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Aug 25, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
Aug–Oct 2026- EPSS v5
Percentile over time
- EPSS v5
Table of values (2 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.19% (0.00188) | 7.54th | v5 (v2026.06.15) |
| Aug 26, 2026 | 0.15% (0.00153) | 4.73th | v5 (v2026.06.15) |
References (5)
- https://github.com/advisories/GHSA-p7x2-g5cq-fhmq Advisory
- https://github.com/versatica/mediasoup/commit/9c1a90a8f9206b965e727d134846fb42df4980a7 x_refsource_MISC
- https://github.com/versatica/mediasoup/pull/1829 x_refsource_MISC
- https://github.com/versatica/mediasoup/releases/tag/3.20.6 x_refsource_MISC
- https://github.com/versatica/mediasoup/security/advisories/GHSA-p7x2-g5cq-fhmq exploitx_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-p7x2-g5cq-fhmq | Advisory | |
| https://github.com/versatica/mediasoup/commit/9c1a90a8f9206b965e727d134846fb42df4980a7 | x_refsource_MISC | |
| https://github.com/versatica/mediasoup/pull/1829 | x_refsource_MISC | |
| https://github.com/versatica/mediasoup/releases/tag/3.20.6 | x_refsource_MISC | |
| https://github.com/versatica/mediasoup/security/advisories/GHSA-p7x2-g5cq-fhmq | exploitx_refsource_CONFIRM |
Change history (0)
No recorded changes yet.