CVE-2026-71851
Beschrijving NL
crypto-js is een JavaScript-bibliotheek van cryptostandaarden. Versies van crypto-js vóór 4.0.0 genereren willekeurigheid in CryptoJS.lib.WordArray.random() met behulp van een aangepaste variant van de Multiply-With-Carry-pseudowillekeurige-getallengenerator, met een seed van Math.random(), in plaats van een cryptografisch veilige bron. Deze generator werd geïntroduceerd in versie 3.1.2-4 en bleef aanwezig in bijna elke 3.x-release. Nominale verzoeken om 128 of 256 bits entropie via deze functie produceren effectieve zoekruimtes van ongeveer 2 tot de 39e en 2 tot de 47e mogelijkheden, klein genoeg om op standaardhardware te worden opgesomd. Downstream wallet-applicaties die CryptoJS.lib.WordArray.random() gebruikten als entropiebron voor BIP39-herstelzinnen zijn getroffen, en een aanvaller die de verkleinde outputruimte opsomt, kan de resulterende privésleutels herstellen en de bijbehorende fondsen beheren. Dit probleem is opgelost in versie 4.0.0.
Origineel (Engels) tonen
crypto-js is a JavaScript library of crypto standards. Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation of the Multiply-With-Carry pseudorandom number generator, seeded from Math.random(), instead of a cryptographically secure source. This generator was introduced in version 3.1.2-4 and remained present in nearly every 3.x release. Nominal requests for 128 or 256 bits of entropy through this function produce effective search spaces of approximately 2 to the 39th and 2 to the 47th possibilities, small enough to enumerate on commodity hardware. Downstream wallet applications that used CryptoJS.lib.WordArray.random() as the entropy source for BIP39 recovery phrases are affected, and an attacker who enumerates the reduced output space can recover the resulting private keys and control the associated funds. This issue is fixed in version 4.0.0.