CVE-2021-30246: Critical severity Jsrsasign Project Jsrsasign Node.js vulnerability

Published Apr 7, 2021
·
Updated

Impact Vulnerable jsrsasign will accept RSA signature with improper PKCS#1.5 padding. Decoded RSA signature value consists following form: 01(ff...(8 or more ffs)...ff)00[ASN.1 OF DigestInfo] Its byte length must be the same as RSA key length, however such checking was not sufficient.

To make crafted message for practical attack is very hard.

Patches Users validating RSA signature should upgrade to 10.2.0 or later.

Workarounds There is no workaround. Not to use RSA signature validation in jsrsasign.

ACKNOWLEDGEMENT Thanks to Daniel Yahyazadeh @yahyazadeh for reporting and analyzing this vulnerability.

Other sources

In the jsrsasign package through 10.1.13 for Node.js, some invalid RSA PKCS#1 v1.5 signatures are mistakenly recognized to be valid. NOTE: there is no known practical attack.

Affected Software

3 affected componentsFixes available
npm/jsrsasign<10.2.0
10.2.0
Jsrsasign Project Jsrsasign Node.js<=10.1.13
kjur Jsrsasign Node.js<=10.1.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/jsrsasign to a version that resolves this vulnerability.

    Fixed in 10.2.0
  2. Compensating control

    Do not use RSA signature validation in jsrsasign versions through 10.1.13 (avoid performing RSA PKCS#1 v1.5 signature validation with vulnerable versions) until upgraded to 10.2.0 or later.

Event History

Apr 7, 2021
CVE Published
via MITRE·08:11 PM
Data Sourced
via MITRE·08:11 PM
Description
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Apr 16, 2021
Advisory Published
07:52 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-30246?

The severity of CVE-2021-30246 is critical with a severity value of 9.1.

2

What is the impact of CVE-2021-30246?

CVE-2021-30246 allows the acceptance of RSA signatures with improper PKCS#1.5 padding, which can lead to vulnerabilities in the jsrsasign package.

3

How can I fix CVE-2021-30246?

To fix CVE-2021-30246, update the jsrsasign package to version 10.2.0 or higher.

4

What is the affected software for CVE-2021-30246?

The affected software for CVE-2021-30246 includes jsrsasign package versions up to and including 10.1.13 for Node.js.

5

What is the Common Weakness Enumeration (CWE) for CVE-2021-30246?

The Common Weakness Enumeration (CWE) for CVE-2021-30246 is CWE-347.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203