SCA: security update for sm-crypto (GHSA-vh45-f885-3848)

critical Tenable Self-Hosted Container Security Plugin ID 445944

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4.
Prior to 0.5.0, the default no-argument sm2.generateKeyPairHex() path in Node.js uses the module-wide
SecureRandom instance in src/sm2/utils.js, supplied by [email protected], which seeds an ARC4 stream from
Math.random() and new Date().getTime() because window.crypto.getRandomValues is unavailable even though
globalThis.crypto exists. An attacker who can observe the process's Math.random() outputs and estimate the
key-generation time can reconstruct the seed, recover generated SM2 private keys, and predict signing
ephemeral scalars used to forge signatures. This issue is fixed in version 0.5.0. (CVE-2026-73567)

Solution

Update the sm-crypto library and its related packages to version 0.5.0 or later.

See Also

https://github.com/advisories/GHSA-vh45-f885-3848

Plugin Details

Severity: Critical

ID: 445944

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 8/13/2026

Updated: 8/13/2026

Risk Information

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 9.4

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:N

CVSS Score Source: CVE-2026-73567

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 7/24/2026

Vulnerability Publication Date: 7/24/2026

Reference Information

CVE: CVE-2026-73567

cwe: CWE-338