critical9.1
CVE-2026-23966
sm-crypto Affected by Private Key Recovery in SM2-PKE
Impact
### Summary A private key recovery vulnerability exists in the SM2 decryption logic of sm-crypto. By interacting with the SM2 decryption interface multiple times, an attacker can fully recover the private key within approximately several hundred interactions. ### Credit This vulnerability was discovered by: - XlabAI Team of Tencent Xuanwu Lab - Atuin Automated Vulnerability Discovery Engine
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | sm-crypto | < 0.3.14 | 0.3.14 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Juneandgreen | Sm-Crypto | before 0.3.14 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/JuneAndGreen/sm-crypto/commit/b1c824e58fdf1eaa73692c124a095819a8c45707
- https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-pgx9-497m-6c4v
- https://github.com/advisories/GHSA-pgx9-497m-6c4v
- https://nvd.nist.gov/vuln/detail/CVE-2026-23966