CVE-2026-23965: Sm crypto Sm-crypto Affected By Signature Forgery Vulnerability
HIGHCVE-2026-23965 is a HIGH (CVSS 7.5) sm-crypto affected by signature forgery vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Sm crypto libraries in the npm ecosystem. The issue involves sm-crypto affected by signature forgery in sm2-dsa. Remediation is available by upgrading affected packages to version 0.4.0.
CVE-2026-23965 at a Glance
Security Impact
CVSS: 7.5
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:N/I:H/A:N).
How to Fix CVE-2026-23965
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.
npm install sm-crypto@0.4.0
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-23965, 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.4.0), 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for 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
CVE-2026-23965 Affected Sm crypto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sm-crypto
|
npm |
< 0.4.0
|
0.4.0
|
References
Frequently Asked Questions
What is CVE-2026-23965?
Which Sm crypto versions are affected?
What version fixes CVE-2026-23965?
Is sm-crypto affected?
What is the CVSS score of CVE-2026-23965?
What CWE is associated with CVE-2026-23965?
How can I check npm dependencies for CVE-2026-23965?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hpwg-xg7m-3p6m",
"modified" : "2026-01-22T15:43:29Z",
"published" : "2026-01-21T16:13:44Z",
"aliases" : [ "CVE-2026-23965" ],
"summary" : "sm-crypto Affected by Signature Forgery in SM2-DSA",
"details" : "### Summary\n\nA signature forgery vulnerability exists in the SM2 signature verification logic of sm-crypto. Under default configurations, an attacker can forge valid signatures for arbitrary public keys. If the message space contains sufficient redundancy, the attacker can fix the prefix of the message associated with the forged signature to satisfy specific formatting requirements.\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:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sm-crypto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-hpwg-xg7m-3p6m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-23965"
}, {
"type" : "WEB",
"url" : "https://github.com/JuneAndGreen/sm-crypto/commit/85295a859d0766222d12ce2be3e6fce7b438b510"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/JuneAndGreen/sm-crypto"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-21T16:13:44Z",
"nvd_published_at" : "2026-01-22T03:15:46Z"
}
}