CVE-2026-73567: Jsbn Insecure Securerandom

Importing SecureRandom from 'jsbn' is cryptographically insecure in non-browser environments like Node.js because jsbn falls back to an ARC4 PRNG seeded with Math.random() and timestamps. Use Node's crypto module or globalThis.crypto instead.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-73567-jsbn-insecure-securerandom --engine opengrep

Description

Importing SecureRandom from 'jsbn' is cryptographically insecure in non-browser environments like Node.js because jsbn falls back to an ARC4 PRNG seeded with Math.random() and timestamps. Use Node's crypto module or globalThis.crypto instead.