CVE-2026-73567: Vulnerability in sm-crypto
Critical. sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4. Prior to 0.5.0, the default no-argument sm2.generateKeyPairHex() path in Node.js uses the module-wide SecureRandom instance in src/sm2/utils.js, supplied by jsbn@1.1.0, which seeds an ARC4 stream from Math.random() and new Date().getTime() because window.crypto.getRandomValues is unavailable even though...
npm, CWE-338
- Exploitation
- None confirmed
- Severity
- 9.1 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-vh45-f885-3848
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weakness
- CWE-338
- Published
- 24 Jul 2026
- Last change
- 24 Oct 2026
- Ecosystem
- npm
Affected packages
Vulnerable version ranges and fixed releases
- sm-crypto npm, Affected before 0.5.0. Fixed in 0.5.0
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes