Security note · 30 November 2026

Socketchat is not affected by the ML-KEM flaws found in 2026.

If you read this year that ML-KEM was broken, you read three different stories squeezed into one headline. In one, several programs that implement ML-KEM shipped a bug that lets an attacker recover a private key. In another, researchers pulled keys out of small chips they could hold and disturb. In the last, a preprint claimed a quantum attack on ML-KEM itself, and the attack turned out not to work. ML-KEM came through all of it intact. Socketchat uses none of the affected code, and nobody running Socketchat needs to update or change a setting because of these reports.

What ML-KEM does in Socketchat

ML-KEM is a post-quantum key exchange. A key exchange is the step where two apps agree on a secret key over a network anyone can watch, and post-quantum means it is built to stay safe against a future quantum computer. The United States standardized ML-KEM in August 2024 as FIPS 203.

X25519, the key exchange most of the internet uses today, would fall to a large enough quantum computer. Socketchat encrypts messages and files with MLS (Messaging Layer Security, RFC 9420), the IETF standard for group chat encryption. Its default MLS suite, numbered 0x004F, runs ML-KEM-768 and X25519 side by side and feeds both results into every key. Cryptographers call this a hybrid. Reading a message means breaking both halves, so a hybrid is never weaker than X25519 alone, even if ML-KEM failed outright.

A check some implementations skipped

When an app receives an ML-KEM key exchange, it decrypts what arrived, encrypts the result again and compares the two ciphertexts. If they differ, the app hands back a random-looking key instead of the real one. This step, the Fujisaki-Okamoto check, stops an attacker from sending deliberately malformed messages and learning the private key from the replies.

In August, RustSec, the public advisory database for Rust code, published RUSTSEC-2026-0290 and RUSTSEC-2026-0288. In the Rust crates pqc_kyber and its fork cosmian_kyber, built with their optional AVX2 speedup, the routine meant to swap in the random-looking key did nothing. The advisory reports recovering a full ML-KEM-768 private key in 4,272 queries. Neither crate is maintained, and neither has a fixed release.

In September, Bhabani Sankar Das showed how small this mistake can be. In a simulation, a comparison that skipped a single coordinate of the incoming ciphertext was enough to recover the key at every ML-KEM security level, in a few hundred thousand queries. The paper lists two wolfSSL vulnerabilities of this kind, CVE-2026-10097 and CVE-2026-6330.

Attacks on chips in the attacker’s hands

A fault attack disturbs a device while it computes, for example by running its clock too fast for an instant, and then studies the errors that come out.

In November, Vipin Kumar, Prathamesh Ram, Suparna Kundu and Dhiman Saha recovered an ML-KEM-512 key from an ARM Cortex-M4 board with one overclocking fault during key generation. Work like this matters for smart cards and embedded hardware. It needs physical control of the device, so it does not reach a Socketchat app talking to its server over a network.

A quantum attack that did not hold up

Between 17 April and 17 May, a four-part arXiv preprint series titled “Module Lattice Security” claimed a quantum attack on ML-KEM using about 1,400 logical qubits.

An analysis by Marin Ivezic and Jasmine Sandler found that the attack’s output does not depend on the secret key, which means it cannot recover one, along with several mathematical errors. Cryptographers Daniel Apon and Thomas Espitau each confirmed flaws independently. FIPS 203 is still NIST’s current standard.

Why none of this reaches Socketchat

Socketchat gets its ML-KEM code from one crate: ml-kem 0.3.2 from the RustCrypto project, through the OpenMLS library. RustSec lists no advisory for it.

pqc_kyber, cosmian_kyber and wolfSSL appear nowhere in Socketchat’s dependencies.

Every Socketchat message key also depends on X25519. If a real flaw in ML-KEM turned up tomorrow, messages would keep the protection X25519 gives them today.

If you audit Socketchat yourself

A scanner that reads every entry in Socketchat’s lockfile, the file that pins each dependency version, can flag two crypto advisories that do not reach the program you install.

  • libcrux-kem 0.0.9 has RUSTSEC-2026-0330 and RUSTSEC-2026-0331, two crashes on short input. It is an optional OpenMLS backend that Socketchat does not compile.
  • curve25519-dalek has RUSTSEC-2026-0620, a wrong result from its AVX-512 backend. That backend needs a nightly compiler or AVX-512 build flags, and Socketchat releases build on stable Rust without them. The advisory also says the X25519 math is unaffected.

From a copy of the repository, cargo tree -i ml-kem shows where Socketchat’s ML-KEM code comes from, and cargo tree -i libcrux-kem prints nothing, because that crate is not part of the build. SECURITY.md lists every advisory the project has checked.

What is still not post-quantum

Two parts of Socketchat use classical cryptography only: signatures and the connection to the server.

Signatures, which prove who sent a message, use Ed25519. Forging one would take a quantum computer at the moment of the attack, so recordings made today do not help an attacker later.

The connection between app and server uses TLS with X25519. Someone who records that traffic and later breaks X25519 would learn what the server already sees, such as message sizes and timing, and still not message or file contents. Is Socketchat safe? lists everything the server can and cannot see.

If you find something this note missed, report it privately through the Security tab on GitHub.