VDB
KO
CRITICAL 9.1

GHSA-5jx8-q4cp-rhh6

jsrsasign: Incomplete Comparison Allows DSA Private Key Recovery via Biased Nonce Generation

Quick fix

GHSA-5jx8-q4cp-rhh6 — jsrsasign: upgrade to the fixed version with the command below.

npm install jsrsasign@11.1.1

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / jsrsasign
Introduced in: 7.0.0 Fixed in: 11.1.1
Fix npm install jsrsasign@11.1.1

References