CVE-2026-4601: jsrsasign Vulnerability Allows Private Key Extraction via DSA Signing

jsrsasign Updated 29 Mar 2026

Summary

23/03/2026
Yes i
High
8.7

CVE-2026-4601: jsrsasign: Missing cryptographic validation during DSA signing enables private key extraction. Affects jsrsasign versions < 11.1.1. Fixed in 11.1.1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

jsrsasign is a widely used JavaScript library that provides cryptographic functions, including digital signatures, encryption, and key management. It is commonly utilized in web applications to secure communications and authenticate users. The library's DSA signing implementation has a critical vulnerability that can lead to the exposure of private keys, compromising the security of applications that rely on it.

Vulnerability Detail

The vulnerability arises from a missing cryptographic validation step in the DSA signing process of the jsrsasign library. Specifically, when the KJUR.crypto.DSA.signWithMessageHash function is called, an attacker can manipulate the signing process by forcing the signature components 'r' or 's' to be zero. This results in the generation of an invalid signature without any retry mechanism, allowing the attacker to solve for the private key 'x' from the resulting signature. The ramifications of this vulnerability are severe, as it can lead to unauthorized access and control over systems that depend on the compromised private keys.

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

11.1.1

This is the first release that contains the fix.

npm install jsrsasign@11.1.1

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

Workaround

As a temporary workaround, consider implementing additional validation checks in your application to ensure that the signature components 'r' and 's' are not zero before proceeding with any cryptographic operations. However, this is not a substitute for updating the library.

Conclusion

The jsrsasign library has a critical vulnerability that allows for private key extraction due to missing cryptographic validation during DSA signing. It is crucial for developers using this library to update to version 11.1.1 or later to mitigate the risk. Additionally, implementing workarounds can provide temporary relief, but updating the library is the most effective solution.

See every vulnerability recorded for jsrsasign →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

Versions of jsrsasign prior to 11.1.1 are vulnerable to this issue.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability can lead to the extraction of private keys, resulting in unauthorized access to sensitive data and systems.

Yes, Vulert can monitor your project for open-source vulnerabilities in real-time using just the package-lock.json file.

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

11.1.1

This is the first release that contains the fix.

npm install jsrsasign@11.1.1

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