GHSA-5jx8-q4cp-rhh6

Suggest an improvement
Source
https://github.com/advisories/GHSA-5jx8-q4cp-rhh6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-5jx8-q4cp-rhh6/GHSA-5jx8-q4cp-rhh6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5jx8-q4cp-rhh6
Aliases
Published
2026-03-23T06:30:29Z
Modified
2026-03-30T19:46:29.060669Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
jsrsasign: Incomplete Comparison Allows DSA Private Key Recovery via Biased Nonce Generation
Details

Versions of the package jsrsasign from 7.0.0 and before 11.1.1 are vulnerable to Incomplete Comparison with Missing Factors via the getRandomBigIntegerZeroToMax and getRandomBigIntegerMinToMax functions in src/crypto-1.1.js; an attacker can recover the private key by exploiting the incorrect compareTo checks that accept out-of-range candidates and thus bias DSA nonces during signature generation.

Database specific
{
    "github_reviewed_at": "2026-03-30T19:29:39Z",
    "nvd_published_at": "2026-03-23T06:16:21Z",
    "cwe_ids": [
        "CWE-1023"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true
}
References

Affected packages

npm / jsrsasign

Package

Affected ranges

Type
SEMVER
Events
Introduced
7.0.0
Fixed
11.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-5jx8-q4cp-rhh6/GHSA-5jx8-q4cp-rhh6.json"