QID 980500

QID 980500: Nodejs (npm) Security Update for jsrsasign (GHSA-xxxq-chmp-67g4)

Security update has been released for jsrsasign to fix the vulnerability.

Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Jsrsasign supports RSA PKCS#1 v1.5 (i.e. RSAES-PKCS1-v1_5) and RSA-OAEP encryption and decryption. Its encrypted message is represented as BigInteger. When there is a valid encrypted message, a crafted message with prepending zeros can be decrypted by this vulnerability.

- If you don't use RSA PKCS1-v1_5 or RSA-OAEP decryption, this vulnerability is not affected.
- Risk to forge contents of encrypted message is very low.
- Risk to raise memory corruption is low since jsrsasign uses BigInteger class.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    Users using RSA PKCS1-v1_5 or RSA-OAEP decryption should upgrade to 8.0.18.Workaround:
    Reject RSA PKCS1-v1_5 or RSA-OAEP encrypted message with unnecessary prepending zeros.
    Vendor References

    CVEs related to QID 980500

    Software Advisories
    Advisory ID Software Component Link
    GHSA-xxxq-chmp-67g4 jsrsasign URL Logo github.com/advisories/GHSA-xxxq-chmp-67g4