sm-crypto
Affected
- introduced
0, fixed0.4.0(semver)
Fixed versions
0.4.0
Fix
- Fixed version
0.4.0npm install [email protected]
Advisory
Also known as: CVE-2026-23965
sm-crypto Affected by Signature Forgery in SM2-DSA
Summary
A signature forgery vulnerability exists in the SM2 signature verification logic of sm-crypto. 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.
Credit
This vulnerability was discovered by:
High Basis: The source's own band: HIGH
0, fixed 0.4.0 (semver)0.4.0
0.4.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0