Advisory

GHSA-pgx9-497m-6c4v

Also known as: CVE-2026-23966

Summary

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

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-01-21 16:13 UTC
Modified
2026-02-03 03:10 UTC

Affected packages and fixes

sm-crypto

npm · All systems

Affected

  • introduced 0, fixed 0.3.14 (semver)

Fixed versions

0.3.14

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences