QShift Labs
Sign in

Open source

Synapse (Matrix)

github.com/element-hq/synapse

D

Scanned 5 Dec 2026 at commit 24f76c0e74: 698 files, JavaScript, Python, Rust, Server config, graded against CNSA 2.0, qshift 0.2.4.

3 weak today, 2 quantum-vulnerable, 0 below the profile, 2 ready.

How to raise the grade

The changes that move the grade most, in this order. Each step counts the places from the list below.

  1. Fix what is weak today: TLS 1.0/1.1, SHA-1D to C

    3 places. Allow TLS 1.2 and 1.3 only: nginx ssl_protocols TLSv1.2 TLSv1.3; Apache SSLProtocol -all +TLSv1.2 +TLSv1.3; HAProxy ssl-min-ver TLSv1.2; Caddy protocols tls1.2; Dovecot ssl_min_protocol = TLSv1.2.

  2. Replace classic ECDHE groups only

    1 place, most of them in docker/conf-workers/. Put X25519MLKEM768 (SecP384r1MLKEM1024 for CNSA 2.0) first, e.g. nginx ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1; or remove the list to keep the OpenSSL 3.5+ default. Needs OpenSSL 3.5+ (or AWS-LC) and TLS 1.3.

  3. Replace Ed25519/X25519C to A+

    1 place, most of them in rust/src/federation_client/. Use the ml-dsa crate (MlDsa87) or ml-kem (MlKem1024), or aws-lc-rs.

1. Fix now: weak today

Broken or too weak today, without any quantum computer. These hold the grade at D or F.

Weak todayTLS 1.0/1.1 1 place

SSL 3.0, TLS 1.0 or TLS 1.1 enabled in a server config (nginx, Apache, HAProxy, Caddy, Postfix, Dovecot)

Fix: Allow TLS 1.2 and 1.3 only: nginx ssl_protocols TLSv1.2 TLSv1.3; Apache SSLProtocol -all +TLSv1.2 +TLSv1.3; HAProxy ssl-min-ver TLSv1.2; Caddy protocols tls1.2; Dovecot ssl_min_protocol = TLSv1.2.

Weak todayTLS 1.0/1.1 1 place

TLS 1.0 / 1.1 or SSL protocol versions in the ssl module

Fix: Use ssl.create_default_context() and set minimum_version = ssl.TLSVersion.TLSv1_3 where peers allow it (at least TLSv1_2).

Weak todaySHA-1 1 place

SHA-1 hash from hashlib

Fix: Use hashlib.sha384 or hashlib.sha512.

2. Protect data in transit

Key exchange and encryption a future quantum computer could break. Traffic recorded today could be decrypted later, so these come before signatures.

Quantum-vulnerableclassic ECDHE groups only 1 place

TLS group list without an ML-KEM group in a server or OpenSSL config (switches off the hybrid default of OpenSSL 3.5+ and Go)

Fix: Put X25519MLKEM768 (SecP384r1MLKEM1024 for CNSA 2.0) first, e.g. nginx ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1; or remove the list to keep the OpenSSL 3.5+ default. Needs OpenSSL 3.5+ (or AWS-LC) and TLS 1.3.

Quantum-vulnerableEd25519/X25519 1 place

Ed25519, Ed448 or X25519 from ed25519-dalek, ed25519-compact, ed448-goldilocks or x25519-dalek

Fix: Use the ml-dsa crate (MlDsa87) or ml-kem (MlKem1024), or aws-lc-rs.

Already post-quantum or strong enough

Readyrustls 0.23.46 1 place

Prefers hybrid X25519MLKEM768 by default with the aws-lc-rs provider.

Fix: None needed.

Readycryptography 50.0.1 1 place

Has ML-KEM and ML-DSA (ML-DSA certificates from 50.0.0).

Fix: None needed.

This is what the qshift scanner found in the public code at the commit named, with test folders left out. A scanner reports what it finds; it cannot prove that no other cryptography is used. It is not an audit and says nothing about how the project is run.