Advisory

GHSA-hpwg-xg7m-3p6m

Also known as: CVE-2026-23965

Summary

sm-crypto Affected by Signature Forgery in SM2-DSA

Details

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:

  • XlabAI Team of Tencent Xuanwu Lab
  • Atuin Automated Vulnerability Discovery Engine

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-01-21 16:13 UTC
Modified
2026-02-03 03:10 UTC

Affected packages and fixes

sm-crypto

npm · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences