IntelligenceAdvisoriesAdvisory
GHSA-27fj-mc8w-j9wg
RSA signature validation vulnerability on maleable encoded message in jsrsasign
In short
What to know.
- Package
- jsrsasign npmbefore 10.2.0
- What to do
- Upgrade jsrsasign to 10.2.0 or later.
- Source's rating
- CriticalNoumen has not assessed it.
- Noumen finding
- NMN-2026-0021Candidate. Severity critical, confidence high.
3 December 2026
Source
- OSV record GHSA-27fj-mc8w-j9wgosv.devRetrieved 3 December 2026
Full record
- Identifier
- GHSA-27fj-mc8w-j9wg
- Aliases
- CVE-2021-30246
- Severity
- Critical, as rated by the source. Noumen has not assessed it.
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Fixed versions
- 10.2.0
- Published
- 16 April 2021
- Modified
- 8 November 2023
- Source
- OSV record GHSA-27fj-mc8w-j9wg, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| jsrsasign npm | before 10.2.0 | 10.2.0 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
### 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.