Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft RSA signature with negative exponent
-
DeliveryCall modPow with negative value
-
ExploitTrigger incorrect numeric type conversion
-
ExecutionCompute wrong modular inverse
-
ImpactBypass signature verification
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V14 - Configuration Dependency management, component inventory
|
| Exploitation Conditions | jsrsasign versions before 11.1.1 with ext/jsbn2.js included. Remote unauthenticated attacker can exploit by calling modPow with negative exponent during signature verification, causing denial of service through incorrect modular inverse computation. No user interaction required. |
| Impact | The CVSS score of 7.5 (High) reflects network-based exploitation with low complexity requiring no privileges or user interaction, but the impact is rated only for availability (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). However, this scoring appears inconsistent with the actual vulnerability impact, which compromises signature verification integrity rather than availability. The presence of proof-of-concept code (indicated by /E:P in the vector and GitHub Gist reference) significantly elevates real-world risk, as attackers can readily implement this technique to forge signatures or bypass authentication mechanisms that rely on jsrsasign for cryptographic validation. While not currently in CISA KEV, the combination of public POC availability, low attack complexity, network accessibility, and the critical role of signature verification in authentication and authorization workflows makes this a high-priority issue for organizations using affected versions. The cryptographic nature means exploitation could be highly automatable once integrated into attack toolkits. |
| Exploit ScenarioDerived | An attacker identifies a web application using a vulnerable version of jsrsasign for JWT token validation. By crafting a malicious JWT token and exploiting the negative exponent handling flaw during the signature verification process, the attacker forces the library to compute an incorrect modular inverse, causing the signature verification to fail in a predictable or exploitable manner. This could allow the attacker to forge valid-appearing tokens, bypass authentication mechanisms, or escalate privileges within the application. The attack requires only network access to the vulnerable application and can be performed without authentication, as demonstrated in the proof-of-concept at https://gist.github.com/Kr0emer/7ecd2be7d17419e4677315ef3758faf5. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 23, 2026
The jsrsasign JavaScript library before version 11.1.1 contains a vulnerability that allows attackers to break signature verification by exploiting incorrect handling of negative exponents in modular exponentiation operations. This affects all versions prior to 11.1.1 of the jsrsasign package, enabling remote attackers without authentication to compromise cryptographic signature validation. A proof-of-concept exploit exists as indicated by the CVSS exploitability metric and public GitHub references demonstrating the attack technique.
RemediationAI
Upgrade the jsrsasign package to version 11.1.1 or later, which contains the fix implemented in commit 5ea1c32bb2aa894b4bd29849839afe4f98728195 available at https://github.com/kjur/jsrsasign/commit/5ea1c32bb2aa894b4bd29849839afe4f98728195. The patch was merged via pull request 650 at https://github.com/kjur/jsrsasign/pull/650. For npm-based projects, update the package.json dependency and run npm update or npm install to fetch the patched version. Until patching is complete, conduct thorough code review to identify any instances where external or untrusted input could influence the exponent parameter in modPow or related cryptographic operations, and implement input validation to reject negative exponent values. Additionally, consider implementing defense-in-depth measures such as cryptographic signature verification at multiple layers and enhanced logging of signature validation failures to detect potential exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The jsrsasign library is a widely-used JavaScript implementation of JSON Web Signature, JSON Web Token, JSON Web Key and other cryptographic standards for web applications. The vulnerability (CWE-681: Incorrect Conversion between Numeric Types) resides in the ext/jsbn2.js file where the modPow function incorrectly handles negative exponents during modular exponentiation operations. When a negative exponent is passed to modPow, the function computes incorrect modular inverses, which are critical operations in RSA and other public-key cryptographic algorithms. The affected product is identified as cpe:2.3:a:n/a:jsrsasign:*:*:*:*:*:*:*:* covering all versions prior to the fix.
Know when Jsrsasign gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (snyk).
CVSS VectorVendor: snyk
Lifecycle Timeline
3DescriptionCVE.org
Versions of the package jsrsasign before 11.1.1 are vulnerable to Incorrect Conversion between Numeric Types due to handling negative exponents in ext/jsbn2.js. An attacker can force the computation of incorrect modular inverses and break signature verification by calling modPow with a negative exponent.
Blast Radius
ecosystem impact- 38 npm packages depend on jsrsasign (10 direct, 28 indirect)
Ecosystem-wide dependent count for version 11.1.1.
Executive ViewAI
The jsrsasign library vulnerability (CVE-2026-4602) enables attackers to forge or invalidate digital signatures without authentication, directly compromising the integrity of any application relying on this library for cryptographic verification. Organizations using affected versions face immediate risk of authentication bypass, data tampering, and potential compliance violations if digital signatures are used for critical business processes.
Implement application-level signature validation logging and alerting; disable or restrict access to features dependent on jsrsasign signature verification if non-critical to operations; apply WAF rules targeting abnormal signature verification patterns or requests with malformed exponents; segment networks to limit exposure of signature verification services; consider temporary transition to alternative cryptographic libraries with equivalent functionality until patched version is released; implement strict input validation on all signature inputs and enforce certificate pinning where applicable.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in jsrsasign Cryptographic Implementation Flaws
View all 6An issue was discovered in the jsrsasign package before 8.0.17 for Node.js. Rated critical severity (CVSS 9.8), this vul
An issue was discovered in the jsrsasign package before 8.0.18 for Node.js. Rated critical severity (CVSS 9.8), this vul
The package jsrsasign before 10.5.25 are vulnerable to Improper Verification of Cryptographic Signature when JWS or JWT
An issue was discovered in the jsrsasign package through 8.0.18 for Node.js. Rated high severity (CVSS 7.5), this vulner
Versions of the package jsrsasign before 11.0.0 are vulnerable to Observable Discrepancy via the RSA PKCS1.5 or RSAOAEP
In the jsrsasign package through 10.1.13 for Node.js, some invalid RSA PKCS#1 v1.5 signatures are mistakenly recognized
EUVD-2026-14379
GHSA-8qwj-4jxw-m8jw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB