CVE-2026-23966: Sm crypto Sm-crypto Affected By Private Key Vulnerability

CRITICAL
Advisory Identifier: GHSA-pgx9-497m-6c4v
CVSS 9.1
CWE-345
Published
Advisory Summary

CVE-2026-23966 is a CRITICAL (CVSS 9.1) sm-crypto affected by private key vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Sm crypto libraries in the npm ecosystem. The issue involves sm-crypto affected by private key recovery in sm2-pke. Remediation is available by upgrading affected packages to version 0.3.14.

CVE-2026-23966 at a Glance

CVE Identifier CVE-2026-23966
GHSA Identifier GHSA-pgx9-497m-6c4v
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Sm crypto
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-23966

To remediate this vulnerability, upgrade all affected Sm crypto dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sm-crypto fixed: 0.3.14
npm install sm-crypto@0.3.14
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls sm-crypto

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-23966, inspect your project dependencies using npm:

npm ls sm-crypto

Analyze the terminal output to locate any version of Sm crypto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.14), your application is affected.

Note: The npm ls sm-crypto command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Sm crypto, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2026-23966 Affected Sm crypto Versions

1 component(s)
Fixed Versions:
0.3.14
Product / Package Ecosystem Affected Versions Fixed Version
sm-crypto
npm
< 0.3.14
0.3.14

References

Frequently Asked Questions

What is CVE-2026-23966?
CVE-2026-23966 is a security vulnerability in Sm crypto involving sm-crypto Affected by Private Key Recovery in SM2-PKE under CWE-345: Insufficient Verification of Data Authenticity.
Which Sm crypto versions are affected?
Affected versions include releases prior to 0.3.14 across affected packages: sm-crypto.
What version fixes CVE-2026-23966?
Upgrading to 0.3.14 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sm-crypto affected?
Yes, sm-crypto is affected in releases prior to 0.3.14. Upgrade your dependency to 0.3.14 or later.
What is the CVSS score of CVE-2026-23966?
CVE-2026-23966 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-23966?
CVE-2026-23966 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check npm dependencies for CVE-2026-23966?
Run the dependency tree command: 'npm ls sm-crypto'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pgx9-497m-6c4v",
  "modified" : "2026-01-22T15:43:14Z",
  "published" : "2026-01-21T16:13:25Z",
  "aliases" : [ "CVE-2026-23966" ],
  "summary" : "sm-crypto Affected by Private Key Recovery in SM2-PKE",
  "details" : "### 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",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "sm-crypto"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.14"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-pgx9-497m-6c4v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-23966"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/JuneAndGreen/sm-crypto/commit/b1c824e58fdf1eaa73692c124a095819a8c45707"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/JuneAndGreen/sm-crypto"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-21T16:13:25Z",
    "nvd_published_at" : "2026-01-22T03:15:47Z"
  }
}