Vulnerability library
Security checkMarch 30, 2026

jsrsasign: Division by Zero Allows Invalid JWK Modulus to Cause Deterministic Zero Output in RSA Operations

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

Low 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 Division by zero due to the RSASetPublic/KEYUTIL parsing path in ext/rsa.js and the BigInteger.modPowInt reduction logic in ext/jsbn.js. An attacker can force RSA public-key operations (e.g.

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: Division by Zero Allows Invalid JWK Modulus to Cause Deterministic Zero Output in RSA Operations and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 30, 2026