{"id":"CVE-2026-23965","published":"2026-01-22T02:05:43Z","modified":"2026-01-22T15:58:10Z","title":"sm-crypto Affected by Signature Forgery in SM2-DSA","vendor":"JuneAndGreen","product":"sm-crypto","tier":"tail","description":{"text":"sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4. A signature forgery vulnerability exists in the SM2 signature verification logic of sm-crypto prior to version 0.4.0. 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. Version 0.4.0 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00215,"percentile":0.12169,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-hpwg-xg7m-3p6m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/JuneAndGreen/sm-crypto/commit/85295a859d0766222d12ce2be3e6fce7b438b510","tags":["x_refsource_MISC"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":2.43},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"juneandgreen","affectedVersions":[{"vendor":"JuneAndGreen","product":"sm-crypto","versions":["< 0.4.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-22T15:57:36.387701Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"sm-crypto","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-hpwg-xg7m-3p6m"],"provenance":"source"}],"summary":{"text":"A signature forgery flaw exists in the SM2 signature verification logic of the sm-crypto JavaScript library (the SM2, SM3, and SM4 cryptographic implementation) prior to version 0.4.0. Under default configurations, an attacker with network access and no authentication or user interaction can forge valid signatures for arbitrary public keys, and where the message space has sufficient redundancy, can fix the message prefix to satisfy specific formatting requirements.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:47Z"},"euvd":{"id":"EUVD-2026-3674","exploited":false,"provenance":"source"}}