Sm Crypto
CVE-2026-23966
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend multiple SM2 decryption requests
-
ExploitAnalyze decryption responses
-
ExecutionExtract mathematical patterns
-
ImpactRecover private key gradually
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | sm-crypto library versions prior to 0.3.14 with exposed SM2 decryption interface accessible to unauthenticated network callers. No special conditions—remote unauthenticated exploitation against default sm-crypto deployments. |
| Impact | CVSS 9.1 with patch available. SM2 is mandated for use in Chinese government and financial systems. Private key recovery compromises all past and future signatures and encrypted communications. |
| Exploit ScenarioDerived | An attacker collects SM2 signatures produced by the sm-crypto library, exploits the implementation flaw to recover the private key, then uses it to forge signatures or decrypt confidential communications. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
The sm-crypto JavaScript library has a private key recovery vulnerability in its SM2 implementation, allowing attackers to extract secret keys from signatures.
Earlier versions of this analysis (1)
Private key recovery from SM2 signatures in sm-crypto library compromises all signed data.
RemediationAI
Update sm-crypto immediately. Rotate all SM2 key pairs generated or used with affected versions. Re-sign critical data.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The sm-crypto library has a CWE-345 insufficient verification vulnerability in its SM2 (Chinese national cryptographic standard) implementation that allows attackers to recover private keys from observed signatures.
Know when Sm Crypto gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Blast Radius
ecosystem impact- 532 npm packages depend on sm-crypto (323 direct, 216 indirect)
Ecosystem-wide dependent count for version 0.3.14.
Executive ViewAI
Organizations using the SM2 decryption logic of sm-crypto face critical risk from CVE-2026-23966 rated CVSS 9.1. Successful exploitation could critically impact the confidentiality, integrity, and availability of affected systems. A patch is available and should be applied immediately given the critical severity.
Apply vendor patch. If immediate patching is not feasible: (1) Implement network-level access controls to limit exposure; (2) Enable enhanced monitoring and alerting; (3) Apply principle of least privilege.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)GitHub Advisory
Predictable SM2 private-key and signing-nonce generation in the sm-crypto npm library (versions prior to 0.5.0) lets an
Sm-Crypto versions up to 0.3.14. is affected by improper verification of cryptographic signature (CVSS 7.5).
SM2 signature forgery in sm-crypto prior to version 0.4.0 allows unauthenticated attackers to create valid signatures fo
GHSA-pgx9-497m-6c4v
NVD
CVE.org
EPSS
Exploit-DB