CVE-2026-23966 sm-crypto Affected by Private Key Recovery in SM2-PKE
CriticalCVSS 9.1
EPSS 0.23%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| JuneAndGreen sm-crypto | = < 0.3.14 | No fix listed |
| npm sm-crypto(npm) | < 0.3.14 | 0.3.14 |
| JuneAndGreen sm-crypto | < 0.3.14 | 0.3.14 |
References
- https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-pgx9-497m-6c4v vendor-advisory
- https://github.com/JuneAndGreen/sm-crypto/commit/b1c824e58fdf1eaa73692c124a095819a8c45707 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product