SNYK-JS-JSRSASIGN-15370939
PUBLISHED
CVSS 9.300000190734863 CRITICAL
## Overview
[jsrsasign](https://www.npmjs.com/package/jsrsasign) is a free pure JavaScript cryptographic library.
Affected versions of this package 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.
## Remediation
Upgrade `jsrsasign` to version 11.1.1 or higher.
## References
- [GitHub Commit](https://github.com/kjur/jsrsasign/commit/ee4b013478366cb16cea9a4bdfb218b6077f83b1)
- [GitHub Gist](https://gist.github.com/Kr0emer/081681818b51605c91945126d74b4f20)
- [GitHub PR](https://github.com/kjur/jsrsasign/pull/647)