CVE-2020-14966: ECDSA signature validation vulnerability in jsrsasign

jsrsasign Updated 02 Oct 2025

Summary

26/06/2020
Yes i
High
7.5

CVE-2020-14966: ECDSA signature validation vulnerability by accepting wrong ASN.1 encoding in jsrsasign. Affects jsrsasign versions >= 4.0.0, < 8.0.19. Fixed in 8.0.19. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The jsrsasign package is an open-source library that provides various cryptographic functions, including ECDSA signature validation. It supports the validation of ECDSA signatures represented by ASN.1 DER encoding. However, a vulnerability in the library allows it to accept incorrectly encoded signatures, such as those with wrong multi-byte ASN.1 length, prepended zeros in ASN.1 INTEGER value, or appended zeros to the signature. This vulnerability affects all ECC curve parameters and may accept semantically equivalent but malleable ECDSA signatures. It is important to note that this vulnerability does not impact non-ASN.1 format signatures or implementations that perform strict ASN.1 DER checking.

Vulnerability Detail

The vulnerability in jsrsasign allows the acceptance of incorrectly encoded ECDSA signatures. This can lead to the acceptance of forged or crafted messages as valid signatures. While the risk of memory corruption is low due to the use of the BigInteger class, the acceptance of malleable ECDSA signatures increases the risk of accepting invalid signatures as valid. It is worth noting that there are no specific standards requiring ASN.1 DER encoding for ECDSA signatures, but most implementations, like OpenSSL, perform strict ASN.1 DER checking.

How To Fix

Latest published version: 11.1.5 as of 23 Oct 2026

npm install jsrsasign@11.1.5

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.0.19

This is the first release that contains the fix.

npm install jsrsasign@8.0.19

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

A workaround for this vulnerability is to perform strict ASN.1 DER checking for ASN.1 encoded ECDSA signature values. This can be done by using the checkStrictDER function from the ASN1HEX module in the jsrsasign library.

Conclusion

The jsrsasign package contains a vulnerability that allows the acceptance of incorrectly encoded ECDSA signatures. Upgrading to version 8.0.19 or later fixes this vulnerability by implementing strict ASN.1 DER checking. Performing strict ASN.1 DER checking for ASN.1 encoded ECDSA signature values is also a recommended workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for jsrsasign →

Share this vulnerability

FAQ

This vulnerability allows the acceptance of incorrectly encoded ECDSA signatures, which can lead to the acceptance of forged or crafted messages as valid signatures.

Yes, this vulnerability affects all ECC curve parameters.

The risk of memory corruption is low since jsrsasign uses the BigInteger class.

No, the risk of memory corruption is low due to the use of the BigInteger class.

Yes, there are many malleable variants of ECDSA signatures that can be accepted as valid.

Related vulnerabilities

Recent vulnerabilities recorded for jsrsasign.

How To Fix

Latest published version: 11.1.5 as of 23 Oct 2026

npm install jsrsasign@11.1.5

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.0.19

This is the first release that contains the fix.

npm install jsrsasign@8.0.19

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback