# sm-crypto (npm) vulnerabilities

4 known vulnerabilities (2 critical, 2 high), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 0.5.8 (Oct 26, 2026): no advisory affects it
- Newest unaffected release: 0.5.8 (Oct 26, 2026), the latest release
- Weekly downloads: 45.8K
- Dependents: 24
- Releases: 47 since 0.0.1 (Jan 28, 2018)
- Registry: https://www.npmjs.com/package/sm-crypto
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-73567: 0.0.1 to 0.4.0 (0.5.0 is outside it)
- CVE-2026-23966: 0.0.1 to 0.3.13 (0.3.14 is outside it)
- CVE-2026-23965: 0.0.1 to 0.3.14 (0.4.0 is outside it)
- CVE-2026-23967: 0.0.1 to 0.3.13 (0.3.14 is outside it)

## Advisories (4)

### [CVE-2026-73567](https://cve.now/CVE-2026-73567): sm-crypto: Predictable SM2 key generation in Node.js: default RNG uses Math.random + wall clock

- Severity: Critical 9.1
- Published: Aug 13, 2026
- Affected: fixed in 0.5.0.
- Fixed in 0.5.0 (released Jul 23, 2026, 21 days before disclosure).
- The latest release, 0.5.8, is not affected.
- 75% of sm-crypto downloads last week were affected versions (33.2K).

### [CVE-2026-23966](https://cve.now/CVE-2026-23966): sm-crypto Affected by Private Key Recovery in SM2-PKE

- Severity: Critical 9.1
- Published: Jan 22, 2026
- Affected: fixed in 0.3.14.
- Fixed in 0.3.14 (released Jan 20, 2026, 2 days before disclosure).
- The latest release, 0.5.8, is not affected.
- 29% of sm-crypto downloads last week were affected versions (12.9K).

### [CVE-2026-23965](https://cve.now/CVE-2026-23965): sm-crypto Affected by Signature Forgery in SM2-DSA

- Severity: High 7.5
- Published: Jan 22, 2026
- Affected: fixed in 0.4.0.
- Fixed in 0.4.0 (released Jan 20, 2026, 2 days before disclosure).
- The latest release, 0.5.8, is not affected.
- 66% of sm-crypto downloads last week were affected versions (29.3K).

### [CVE-2026-23967](https://cve.now/CVE-2026-23967): sm-crypto Affected by Signature Malleability in SM2-DSA

- Severity: High 7.5
- Published: Jan 22, 2026
- Affected: fixed in 0.3.14.
- Fixed in 0.3.14 (released Jan 20, 2026, 2 days before disclosure).
- The latest release, 0.5.8, is not affected.
- 29% of sm-crypto downloads last week were affected versions (12.9K).

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/sm-crypto
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
