CVE-2026-33891: Fallback Jsbn Modinverse Missing Zero Check

A BigInteger `modInverse` implementation (typically originating from the jsbn library) was found to be lacking a check for a zero instance (`this`). If executed with a zero value, the Extended Euclidean Algorithm enters an unreachable exit condition resulting in an infinite loop and Denial of Service (DoS).

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-33891-fallback-jsbn-modinverse-missing-zero-check --engine opengrep

Description

A BigInteger `modInverse` implementation (typically originating from the jsbn library) was found to be lacking a check for a zero instance (`this`). If executed with a zero value, the Extended Euclidean Algorithm enters an unreachable exit condition resulting in an infinite loop and Denial of Service (DoS).