Vulnerability library
Security checkJuly 21, 2026

jsrsasign is vulnerable to DoS through Infinite Loop when processing zero or negative inputs

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmjsrsasign

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Versions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse function in ext/jsbn2.js when the BigInteger.modInverse implementation receives zero or negative inputs, allowing an attacker to hang the process permanently by supplying such crafted values (e.g., modInverse(0, m) or modInverse(-1, m)).

Recommendation

Update the jsrsasign package to the latest compatible version. Followings are version details:

  • Affected version(s): < 11.1.1
  • Patched version(s): 11.1.1

References

Could your website be exposed too?

SmartScanner can check your website for jsrsasign is vulnerable to DoS through Infinite Loop when processing zero or negative inputs and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 21, 2026