Vulnerability HighRUSTSEC-2023-0065 · tungstenite
RUSTSEC-2023-0065: Tungstenite allows remote attackers to cause a denial of service
Short answerA security vulnerability in the tungstenite crate: Tungstenite allows remote attackers to cause a denial of service. High severity (CVSS 7.5). Fixed in 0.20.1: update to a fixed version.
| Crate | tungstenite |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.20.1. |
| Fixed in | 0.20.1 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2023-09-25 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2023-43669, GHSA-9mcr-873m-xcxp |
What to do
- See which version you have:
cargo tree -i tungstenite(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p tungstenite. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampletungstenite = "0.20.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
The Tungstenite crate through 0.20.0 for Rust allows remote attackers to cause a denial of service (minutes of CPU consumption) via an excessive length of an HTTP header in a client handshake. The length affects both how many times a parse is attempted (e.g., thousands of times) and the average amount of data for each parse attempt (e.g., millions of bytes).
References
- Package: crates.io/crates/tungstenite
- Advisory: rustsec.org/advisories/RUSTSEC-2023-0065.html
- Report: github.com/snapview/tungstenite-rs/issues/376
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Same cratetungstenite: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?