sm-crypto: Predictable SM2 key generation in Node.js: default RNG uses Math.random + wall clock

Date Jul 24, 2026
Type Vendor advisory
Signal High-risk advisory
Vendor / Product npm · sm-crypto
High-risk advisory

Summary

sm-crypto: Predictable SM2 key generation in Node.js: default RNG uses Math.random + wall clock

Why it matters

GitHub has published a reviewed security advisory for sm-crypto. Prioritize it with other application dependency updates.

Operator check

Check whether sm-crypto is present in application dependency manifests, lockfiles, or build images. Review the GitHub advisory and upgrade to a patched version where available.

Sources

PatchBrief uses public sources. It does not scan environments, verify exposure, or replace vendor guidance.