VDB
KO
HIGH 7.5

GHSA-8qwj-4jxw-m8jw

jsrsasign: Negative Exponent Handling Leads to Signature Verification Bypass

Quick fix

GHSA-8qwj-4jxw-m8jw — jsrsasign: upgrade to the fixed version with the command below.

npm install jsrsasign@11.1.1

Details

Versions of the package jsrsasign before 11.1.1 are vulnerable to Incorrect Conversion between Numeric Types due to handling negative exponents in ext/jsbn2.js. An attacker can force the computation of incorrect modular inverses and break signature verification by calling modPow with a negative exponent.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References