What’s Vulnerable › Vulnerabilities
CVE-2026-23966: sm-crypto Affected by Private Key Recovery in SM2-PKE
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-01-22 · updated 2026-06-17
- Weakness: CWE-345
Description
sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4. A private key recovery vulnerability exists in the SM2 decryption logic of sm-crypto prior to version 0.3.14. By interacting with the SM2 decryption interface multiple times, an attacker can fully recover the private key within approximately several hundred interactions. Version 0.3.14 patches the issue.
Affected products
- JuneAndGreen sm-crypto: before 0.3.14 — fixed in 0.3.14
How to fix
Upgrade to a fixed version: JuneAndGreen sm-crypto 0.3.14. Check the vendor advisory for mitigations.
References
- https://github.com/JuneAndGreen/sm-crypto/commit/b1c824e58fdf1eaa73692c124a095819a8c45707
- https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-pgx9-497m-6c4v
Get alerted when CVE-2026-23966 or the next vulnerability affects your stack