Vulnerability library
Security checkJanuary 27, 2023

RSA-PSS signature validation vulnerability by prepending zeros in jsrsasign

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

Jsrsasign can verify RSA-PSS signature which value can expressed as BigInteger. When there is a valid RSA-PSS signature value, this vulnerability is also accept value with prepending zeros as a valid signature.

  • If you are not use RSA-PSS signature validation, this vulnerability is not affected.

Recommendation

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

  • Affected version(s): >= 3.0.0, < 8.0.16
  • Patched version(s): 8.0.17

References

Could your website be exposed too?

SmartScanner can check your website for RSA-PSS signature validation vulnerability by prepending zeros in jsrsasign and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023