What’s Vulnerable › Vulnerabilities

CVE-2026-23966: sm-crypto Affected by Private Key Recovery in SM2-PKE

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

How to fix

Upgrade to a fixed version: JuneAndGreen sm-crypto 0.3.14. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-23966 or the next vulnerability affects your stack