PT-2026-71715 · Npm · Sm-Crypto

CVE-2026-73567

·

Published

2026-07-24

·

Updated

2026-08-13

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions sm-crypto versions prior to 0.5.0
Description The software provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4. In Node.js, the default no-argument sm2.generateKeyPairHex() path uses a SecureRandom instance in src/sm2/utils.js provided by jsbn@1.1.0. This instance seeds an ARC4 stream using Math.random() and new Date().getTime() because window.crypto.getRandomValues is unavailable. An attacker capable of observing Math.random() outputs and estimating the key-generation time can reconstruct the seed, recover generated SM2 private keys, and predict signing ephemeral scalars to forge signatures.
Recommendations Update to version 0.5.0.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-73567
GHSA-VH45-F885-3848

Affected Products

Sm-Crypto