CVE-2026-23965
sm-crypto provides JavaScript implementations of the Chinese …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/JuneAndGreen/sm-crypto/commit/85295a859d0766222d12ce2be3e6fce7b438b510
- github.com/JuneAndGreen/sm-crypto/security/advisories/GHSA-hpwg-xg7m-3p6m
- nvd.nist.gov/vuln/detail/CVE-2026-23965
- github.com/advisories/GHSA-hpwg-xg7m-3p6m
- nvd.nist.gov/vuln/detail/CVE-2026-23965
- cve.org/CVERecord?id=CVE-2026-23965
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.