Home / JuneAndGreen / sm-crypto / CVE-2026-73567
CVE-2026-73567: is it exploited, and which versions of JuneAndGreen sm-crypto are affected and fixed?
CVE-2026-73567 is a weak random number generator vulnerability in JuneAndGreen sm-crypto. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: sm-crypto before 0.5.0 (GitHub advisory GHSA-vh45-f885-3848). Fixed in 0.5.0 (GitHub advisory GHSA-vh45-f885-3848). Severity: Critical (9.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:08 UTC.
What is CVE-2026-73567?
sm-crypto: Predictable SM2 key generation in Node.js: default RNG uses Math.random + wall clock
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 [email protected], which seeds an ARC4 stream from Math.random() and new Date().getTime() because window.crypto.getRandomValues is unavailable even though globalThis.crypto exists. An attacker who can observe the process's Math.random() outputs and estimate the key-generation time can reconstruct the seed, recover generated SM2 private keys, and predict signing ephemeral scalars used to forge signatures. This issue is fixed in version 0.5.0.
From the CVE record by GitHub_M, last updated August 14, 2026, 18:09 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| JuneAndGreen | sm-crypto | < 0.5.0 |
As the CVE record by GitHub_M states it, last updated August 14, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | sm-crypto | < 0.5.0 | 0.5.0 | GHSA-vh45-f885-3848 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 13, 2026. Summary: sm-crypto: Predictable SM2 key generation in Node.js: default RNG uses Math.random + wall clock.
How severe is CVE-2026-73567?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-73567 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, August 14, 2026)
- EPSS
- 0.32% probability of exploitation activity in the next 30 days, percentile 27.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Where are the vendor advisories and references?
- https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-vh45-f885-3848 x_refsource_CONFIRM
- https://github.com/JuneAndGreen/sm-crypto/commit/1f9bd7bd160c24efd9c26c8f7fda997c68c823d0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 12, 2026
- Published
- August 13, 2026, 17:40 UTC
- CVE record updated
- August 14, 2026, 18:09 UTC by GitHub_M
- NVD
- Deferred, last modified October 24, 2026, 15:10 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:08 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect sm-crypto?
- Jan 22, 2026CVE-2026-23966 JuneAndGreen sm-crypto: data authenticity not verified
- Jan 22, 2026CVE-2026-23965 JuneAndGreen sm-crypto: cryptographic signature not verified
- Jan 22, 2026CVE-2026-23967 JuneAndGreen sm-crypto: cryptographic signature not verified
Questions about CVE-2026-73567
Is CVE-2026-73567 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.32% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of JuneAndGreen sm-crypto are affected by CVE-2026-73567?
sm-crypto before 0.5.0, per the GitHub advisory GHSA-vh45-f885-3848. The tables above give every range the sources list.
Which version fixes CVE-2026-73567?
0.5.0, per the GitHub advisory GHSA-vh45-f885-3848. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-73567?
Critical (9.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-73567?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.