sm-crypto Affected by Private Key Recovery in SM2-PKE
Date: 2026-01
Affected: npm/sm-crypto
Attack vector: other
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2026-23966
CWE: CWE-345
CVSS: 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)

### 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


Mitigations:

Architectural layers (MAESTRO):