GitHub Advisoryadvisory · npm
GHSA-8qwj-4jxw-m8jw jsrsasign: Negative Exponent Handling Leads to Signature Verification Bypass
HIGH
Official page ↗
- Aliases
- CVE-2026-4602
- Ecosystem
- npm
- Packages
- jsrsasign
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-681
- Reviewed
- 2026-03-30
Affected packages
• npm jsrsasign: < 11.1.1 → fixed in 11.1.1
Description
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.
Related
Alias · CVE (1)
- CVE-2026-4602 Versions of the package jsrsasign before 11.1.1 are vulnerable to Incorrect Conversion between Numeric Types due to handling negative… vulnerability
Weakness · CWE (1)
- CWE-681 Incorrect Conversion between Numeric Types weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-4602 advisory
- https://github.com/kjur/jsrsasign/pull/650 web
- https://github.com/kjur/jsrsasign/commit/5ea1c32bb2aa894b4bd29849839afe4f98728195 web
- https://security.snyk.io/vuln/SNYK-JS-JSRSASIGN-15371175 web
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-15812274 web
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4602.json web
- https://github.com/kjur/jsrsasign package
- https://gist.github.com/Kr0emer/7ecd2be7d17419e4677315ef3758faf5 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2450206 web
- https://access.redhat.com/security/cve/CVE-2026-4602 web
- https://access.redhat.com/errata/RHSA-2026:6926 web
- https://access.redhat.com/errata/RHSA-2026:6912 web
- https://access.redhat.com/errata/RHSA-2026:6720 web
- https://access.redhat.com/errata/RHSA-2026:6568 web
- https://access.redhat.com/errata/RHSA-2026:19410 web
- https://access.redhat.com/errata/RHSA-2026:19409 web
- https://access.redhat.com/errata/RHSA-2026:19375 web