CVE-2021-30246
mediumpriority · track · 36EPSS 0.010 · 61 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.4–9.1
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-27fj-mc8w-j9wgRSA signature validation vulnerability on maleable encoded message in jsrsasign2021-04-16ghsa · osvUS
### 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/kjur/jsrsasign/issues/478cnnvd
- https://github.com/kjur/jsrsasign/releases/tag/10.1.13cnnvd
- https://kjur.github.io/jsrsasign/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-30246cnnvd
- https://github.com/kjur/jsrsasign/issues/478enisa_euvd
- https://github.com/kjur/jsrsasign/releases/tag/10.1.13enisa_euvd
- https://kjur.github.io/jsrsasign/enisa_euvd
- https://github.com/kjur/jsrsasign/issues/478Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan