QShift Labs
Sign in

Open source

MongoDB

github.com/mongodb/mongo

D

Scanned 5 Dec 2026 at commit 86b27d5e08: 16966 files, C/C++, JavaScript, Python, Rust, Server config, graded against CNSA 2.0, qshift 0.2.4.

133 weak today, 213 quantum-vulnerable, 1 below the profile, 0 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: RSA, ECDSA P-256, MD5D to C

    133 places. Move the key to a secret store, rotate it, and remove it from the history. If it is a test key, keep it under testdata/ or test/, which are skipped by default.

  2. Replace RSA 2048

    93 places, most of them in jstests/libs/. Plan ML-DSA-87 once your CA and clients support it; until then use RSA 3072+ or ECDSA P-384 with short lifetimes.

  3. Replace RSA 2048

    88 places, most of them in jstests/libs/. Plan ML-DSA-87 once your CA and clients support it; until then use RSA 3072+ or ECDSA P-384 with short lifetimes.

1. Fix now: weak today

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

Weak todayRSA 93 places

Unencrypted private key stored in the repository: anyone with read access has the key

Fix: Move the key to a secret store, rotate it, and remove it from the history. If it is a test key, keep it under testdata/ or test/, which are skipped by default.

Weak todayECDSA P-256 17 places

Unencrypted private key stored in the repository: anyone with read access has the key

Fix: Move the key to a secret store, rotate it, and remove it from the history. If it is a test key, keep it under testdata/ or test/, which are skipped by default.

Weak todayMD5 10 places

MD5 hash from hashlib

Fix: Use hashlib.sha384 or hashlib.sha512. If MD5 is only a non-security checksum, pass usedforsecurity=False (reported as info).

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.

3. Move signatures

Signatures and certificates a future quantum computer could forge. Nothing recorded today becomes readable through them, so they can follow the key exchange, ahead of the CNSA 2.0 and NIST dates.

Quantum-vulnerableRSA 2048 93 places

Private key has an RSA-2048 key: quantum-vulnerable signature

Fix: Plan ML-DSA-87 once your CA and clients support it; until then use RSA 3072+ or ECDSA P-384 with short lifetimes.

Quantum-vulnerableRSA 2048 88 places

Certificate has an RSA-2048 key: quantum-vulnerable signature

Fix: Plan ML-DSA-87 once your CA and clients support it; until then use RSA 3072+ or ECDSA P-384 with short lifetimes.

Quantum-vulnerableECDSA P-256 17 places

Private key has an ECDSA P-256 key: quantum-vulnerable

Fix: Plan ML-DSA-87 (signatures) or ML-KEM-1024 (key exchange) once your software supports it; keep keys easy to rotate.

4. Tidy up

Not broken, but below the strength the profile asks for. Worth doing when the code is changed anyway.

Below profilecryptography 44.0.2 1 place

Versions before 48.0.0 have no ML-KEM or ML-DSA in the standard wheels

Fix: Require cryptography>=48 (the wheels bundle an OpenSSL with ML-KEM and ML-DSA).

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.