{"id":"CVE-2026-55663","published":"2026-08-25T18:15:16Z","modified":"2026-08-25T18:55:59Z","title":"mediasoup: SCTP state cookie lacks cryptographic authentication, enabling unauthorized association establishment (RFC…","vendor":"versatica","product":"mediasoup","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00188,"percentile":0.08546,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/versatica/mediasoup/security/advisories/GHSA-p7x2-g5cq-fhmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/versatica/mediasoup/pull/1829","tags":["x_refsource_MISC"]},{"url":"https://github.com/versatica/mediasoup/commit/9c1a90a8f9206b965e727d134846fb42df4980a7","tags":["x_refsource_MISC"]},{"url":"https://github.com/versatica/mediasoup/releases/tag/3.20.6","tags":["x_refsource_MISC"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.71},{"name":"CVSS severity","points":3.92}]},"vendorSlug":"versatica","affectedVersions":[{"vendor":"versatica","product":"mediasoup","versions":[">= 3.20.0, < 3.20.6",">= 0.22.0, < 0.22.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T18:55:43.763697Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mediasoup","vulnerableRanges":[">=3.20.0, <3.20.6"],"patched":["3.20.6"],"from":["GHSA-p7x2-g5cq-fhmq"],"provenance":"source"},{"ecosystem":"crates.io","package":"mediasoup","vulnerableRanges":[">=0.22.0, <0.22.5"],"patched":["0.22.5"],"from":["GHSA-p7x2-g5cq-fhmq"],"provenance":"source"}],"summary":{"text":"mediasoup's built-in SCTP stack authenticates state cookies using only hardcoded values rather than a per-instance secret and HMAC, which lets the flaw be exploited in the cookie validation code (StateCookie.hpp/StateCookie.cpp) of PlainTransport and PipeTransport when SCTP is enabled without DTLS protection, while WebRtcTransport is not affected. An on-path attacker with network access and no authentication or user interaction can forge a COOKIE-ECHO that establishes an unauthorized SCTP association and injects DataChannel messages as a trusted peer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:02Z"},"euvd":{"id":"EUVD-2026-65694","exploited":false,"provenance":"source"}}