Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-23966 EUVD-2026-3676GHSA-pgx9-497m-6c4v

sm-crypto Affected by Private Key Recovery in SM2-PKE

Published Jan 22, 2026 · Updated Jan 22, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
JuneAndGreen sm-crypto < 0.3.14 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm sm-crypto < 0.3.14 0.3.14 GHSA-pgx9-497m-6c4v

References