GHSA-hpwg-xg7m-3p6m

Suggest an improvement
Source
https://github.com/advisories/GHSA-hpwg-xg7m-3p6m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-hpwg-xg7m-3p6m/GHSA-hpwg-xg7m-3p6m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hpwg-xg7m-3p6m
Aliases
Published
2026-01-21T16:13:44Z
Modified
2026-02-03T03:10:18Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
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
Database specific
{
    "cwe_ids":  [
        "CWE-347"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-01-21T16:13:44Z",
    "nvd_published_at":  "2026-01-22T03:15:46Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / sm-crypto

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.4.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-hpwg-xg7m-3p6m/GHSA-hpwg-xg7m-3p6m.json"