sm-crypto Affected by Signature Forgery in SM2-DSA
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-347.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| JuneAndGreen | sm-crypto | before 0.4.0 | 0.4.0 | Patch available | CNA |
| — | sm-crypto (npm) | before 0.4.0 | 0.4.0 | Patch available | GHSA-hpwg-xg7m-3p6m |
- sm-crypto VendorJuneAndGreen Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
- sm-crypto (npm) Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available GHSA-hpwg-xg7m-3p6m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:juneandgreen:sm-crypto:*:*:*:*:*:*:*:* | before 0.4.0 | Vulnerable | JuneAndGreen |
- cpe:2.3:a:juneandgreen:sm-crypto:*:*:*:*:*:*:*:* Versions before 0.4.0 Vulnerable ·JuneAndGreen
Remediation
- Fix · CNA sm-crypto (JuneAndGreen) Fixed in 0.4.0
- Fix · GHSA-hpwg-xg7m-3p6m sm-crypto (npm) Fixed in 0.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-23965
- 2026-10-03 Alias added: GHSA-hpwg-xg7m-3p6m
References
More JuneAndGreen Sm-crypto vulnerabilities
- TI-2026-19308 sm-crypto Affected by Private Key Recovery in SM2-PKE CVSS 3.1CRITICAL 9.1
- TI-2026-19309 sm-crypto Affected by Signature Malleability in SM2-DSA CVSS 3.1HIGH 7.5
Sources
- CVE-2026-23965 · CVE Program
- CVE-2026-23965 · NVD
- FIRST EPSS
- GHSA-hpwg-xg7m-3p6m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences