Advisory

GHSA-8g7p-jf3g-gxcp

Also known as: CVE-2026-4598

Summary

jsrsasign is vulnerable to DoS through Infinite Loop when processing zero or negative inputs

Details

Versions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse function in ext/jsbn2.js when the BigInteger.modInverse implementation receives zero or negative inputs, allowing an attacker to hang the process permanently by supplying such crafted values (e.g., modInverse(0, m) or modInverse(-1, m)).

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-23 06:30 UTC
Modified
2026-07-21 14:00 UTC

Affected packages and fixes

jsrsasign

npm · All systems

Affected

  • introduced 0, fixed 11.1.1 (semver)

Fixed versions

11.1.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences