{"id":"CVE-2026-23966","aliases":["CVE-2026-23966","GHSA-pgx9-497m-6c4v"],"related":[],"kind":"vulnerability","state":"published","title":"sm-crypto Affected by Private Key Recovery in SM2-PKE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA 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.\n\n\n### Credit\n\nThis vulnerability was discovered by:\n- XlabAI Team of Tencent Xuanwu Lab\n- Atuin Automated Vulnerability Discovery Engine","format":"markdown","source":"ghsa"},{"lang":"es","text":"sm-crypto proporciona implementaciones de JavaScript de los algoritmos criptográficos chinos SM2, SM3 y SM4. Existe una vulnerabilidad de recuperación de clave privada en la lógica de descifrado SM2 de sm-crypto anterior a la versión 0.3.14. Al interactuar con la interfaz de descifrado SM2 varias veces, un atacante puede recuperar completamente la clave privada en aproximadamente varios cientos de interacciones. La versión 0.3.14 corrige el problema.","source":"nvd"}],"published":"2026-01-21T16:13:25.000Z","modified":"2026-06-17T10:22:22.090Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-345"],"affected":[{"ranges":[{"version":"< 0.3.14","status":"affected"}],"vendor":"JuneAndGreen","product":"sm-crypto","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.14"}],"ecosystem":"npm","package":"sm-crypto","purl":"pkg:npm/sm-crypto","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.3.14"}],"vendor":"juneandgreen","product":"sm-crypto","cpe":"cpe:2.3:a:juneandgreen:sm-crypto:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-pgx9-497m-6c4v","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/JuneAndGreen/sm-crypto/commit/b1c824e58fdf1eaa73692c124a095819a8c45707","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23966","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/JuneAndGreen/sm-crypto","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-01-22T15:44:28.115Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23966","url":"https://www.cve.org/CVERecord?id=CVE-2026-23966","licence":"CVE Terms of Use","modified":"2026-01-22T15:49:07.259Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pgx9-497m-6c4v","url":"https://github.com/advisories/GHSA-pgx9-497m-6c4v","licence":"CC-BY-4.0","modified":"2026-02-03T03:10:10.664Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23966","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23966","licence":"Public domain","modified":"2026-06-17T10:22:22.090Z"}],"updatedAt":"2026-11-25T22:59:13.041Z","epss":{"score":0.00232,"percentile":0.14999,"date":"2026-12-01T12:00:22.000Z"}}