# CVE-2026-23966: sm-crypto Affected by Private Key Recovery in SM2-PKE

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-01-21T16:13:25.000Z
- Modified: 2026-06-17T10:22:22.090Z
- Also known as: GHSA-pgx9-497m-6c4v
- Weaknesses: CWE-345
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- JuneAndGreen sm-crypto: < 0.3.14; before 0.3.14
- sm-crypto (npm): before 0.3.14

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-pgx9-497m-6c4v> (vendor-advisory, web)
- <https://github.com/JuneAndGreen/sm-crypto/commit/b1c824e58fdf1eaa73692c124a095819a8c45707> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23966> (advisory)
- <https://github.com/JuneAndGreen/sm-crypto> (package)

## Sources

- CVE List: [CVE-2026-23966](https://www.cve.org/CVERecord?id=CVE-2026-23966), CVE Terms of Use, modified 2026-01-22
- GitHub Advisory Database: [GHSA-pgx9-497m-6c4v](https://github.com/advisories/GHSA-pgx9-497m-6c4v), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-23966](https://nvd.nist.gov/vuln/detail/CVE-2026-23966), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23966 · Whole record: https://cve.day/CVE-2026-23966.json · Rebuilt by cve.day 2026-11-25T22:59:13.041Z
