# CVE-2026-23965: sm-crypto Affected by Signature Forgery in SM2-DSA

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-01-21T16:13:44.000Z
- Modified: 2026-06-17T10:22:21.983Z
- Also known as: GHSA-hpwg-xg7m-3p6m
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- JuneAndGreen sm-crypto: < 0.4.0; before 0.4.0
- sm-crypto (npm): before 0.4.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-hpwg-xg7m-3p6m> (vendor-advisory, web)
- <https://github.com/JuneAndGreen/sm-crypto/commit/85295a859d0766222d12ce2be3e6fce7b438b510> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23965> (advisory)
- <https://github.com/JuneAndGreen/sm-crypto> (package)

## Sources

- CVE List: [CVE-2026-23965](https://www.cve.org/CVERecord?id=CVE-2026-23965), CVE Terms of Use, modified 2026-01-22
- GitHub Advisory Database: [GHSA-hpwg-xg7m-3p6m](https://github.com/advisories/GHSA-hpwg-xg7m-3p6m), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-23965](https://nvd.nist.gov/vuln/detail/CVE-2026-23965), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23965 · Whole record: https://cve.day/CVE-2026-23965.json · Rebuilt by cve.day 2026-11-25T22:59:13.041Z
