Report vulnerabilities privately through GitHub Security Advisories ("Report a vulnerability" on the Security tab). Do not open a public issue for a security bug.
Include the crate version, the target and the features you build with, and a minimal reproduction. We will acknowledge the report, work with you on a fix, and credit you in the advisory unless you ask otherwise.
Security fixes are released as a new PATCH version of the latest MAJOR.MINOR, and only the latest release is supported. Within 2.x, an upgrade never removes or changes a specified behaviour (specification Section 20.3).
The crate's MAJOR.MINOR is the version of the crypto-pq specification that it implements: every
2.1.x release implements specification 2.1, and every 2.0.x release specification 2.0. Releases
are published from signed tags rust-vX.Y.Z.
The 1.0.x releases receive no patch. The values that they leave on the stack after operations on
secret values are listed in
security/audit-2026-11.md. Since 2.0.0 the operations
of ML-KEM, ML-DSA, FrodoKEM and SLH-DSA on secret values end with zeros over the stack in every
build; a MAC and a KDF do so at the opt-levels 1, 2, s and z in every build, and at opt-level 3
only with the Cargo feature stack-zeros, which is not a default feature
(After a keyed hash states what stays without it).
Version 2.0 removed the WebAssembly and 32-bit targets, and 2.1 brings wasm32 back
(decision D-120); users of the other 32-bit targets stay on
1.0.x, which keeps these residues.
The Rust crate crypto-pq published from this repository, and the specification and test vectors it
is built and checked against.