Critical severityOSV Advisory· Published Jan 22, 2026· Updated Jan 22, 2026
sm-crypto Affected by Private Key Recovery in SM2-PKE
CVE-2026-23966
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
sm-cryptonpm | < 0.3.14 | 0.3.14 |
Affected products
2Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-pgx9-497m-6c4vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-23966ghsaADVISORY
- github.com/JuneAndGreen/sm-crypto/commit/b1c824e58fdf1eaa73692c124a095819a8c45707ghsax_refsource_MISCWEB
- github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-pgx9-497m-6c4vghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.