IntelligenceAdvisoriesAdvisory
GHSA-xxxq-chmp-67g4
RSA PKCS#1 decryption vulnerability with prepending zeros in jsrsasign
In short
What to know.
- Package
- jsrsasign npmbefore 8.0.18
- What to do
- Upgrade jsrsasign to 8.0.18 or later.
- Source's rating
- CriticalNoumen has not assessed it.
- Noumen finding
- NMN-2026-0040Candidate. Severity critical, confidence high.
3 December 2026
Source
- OSV record GHSA-xxxq-chmp-67g4osv.devRetrieved 3 December 2026
Full record
- Identifier
- GHSA-xxxq-chmp-67g4
- Aliases
- CVE-2020-14967
- 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:H
- Fixed versions
- 8.0.18
- Published
- 26 June 2020
- Modified
- 8 November 2023
- Source
- OSV record GHSA-xxxq-chmp-67g4, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| jsrsasign npm | before 8.0.18 | 8.0.18 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
### Impact
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.
### Patches
Users using RSA PKCS1-v1_5 or RSA-OAEP decryption should upgrade to 8.0.18.
### Workarounds
Reject RSA PKCS1-v1_5 or RSA-OAEP encrypted message with unnecessary prepending zeros.
### References
https://nvd.nist.gov/vuln/detail/CVE-2020-14967
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14967
https://vuldb.com/?id.157124
https://kjur.github.io/jsrsasign/api/symbols/KJUR.crypto.Cipher.html#.decrypt
https://github.com/kjur/jsrsasign/issues/439
References
- webgithub.com/kjur/jsrsasign/security/advisories/GHSA-xxxq-chmp-67g4
- advisorynvd.nist.gov/vuln/detail/CVE-2020-14967
- webgithub.com/kjur/jsrsasign/issues/439
- webcve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14967
- packagegithub.com/kjur/jsrsasign
- webgithub.com/kjur/jsrsasign/releases/tag/8.0.17
- webgithub.com/kjur/jsrsasign/releases/tag/8.0.18
- webkjur.github.io/jsrsasign
- webkjur.github.io/jsrsasign/api/symbols/KJUR.crypto.Cipher.html#.decrypt
- websecurity.netapp.com/advisory/ntap-20200724-0001
- webvuldb.com/?id.157124
- webwww.npmjs.com/package/jsrsasign