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

High 7.5 Published Updated

Attackers can forge valid SM2 signatures for arbitrary public keys, bypassing authentication or integrity checks in applications using this JavaScript library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-23965?

CVE-2026-23965 is a high-severity vulnerability in JuneAndGreen sm-crypto, published on 22 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-347

Which versions are affected by CVE-2026-23965?

2 open source packages ship an affected version, including sm-crypto. It affects 1 product.

PackageAffectedFixed in
sm-crypto npmAll versions0.4.0
sm-crypto npmAll versions0.4.0

Products include Juneandgreen Sm-Crypto.

How do I fix CVE-2026-23965?

Upgrade sm-crypto to 0.4.0 or later.

Is CVE-2026-23965 being exploited?

There is no known exploitation of CVE-2026-23965 in the wild and no public exploit code.

Sources

Also known as GHSA-hpwg-xg7m-3p6m.

Is CVE-2026-23965 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free