IntelligenceFindingsNMN-2026-0018
crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain
CandidateMachine- or researcher-generated; not independently verified.
In short
What to know.
- Package
- crypto-js npmcrypto-js: before 4.0.0
- What to do
- Upgrade crypto-js to 4.0.0 or later.
- Severity
- CriticalRated by the source advisory.
- Confidence
- HighThe affected range comes from the advisory; no system that uses the component has been assessed.
Verification
Where it stands.
- Candidate
- In review
- Reproduced
- Confirmed
- Resolved
- Disputed
- Withdrawn
5 listed
Sources
- OSV record GHSA-rg76-677x-56q9osv.devRetrieved 3 December 2026
- web reference for GHSA-rg76-677x-56q9github.comRetrieved 3 December 2026
- web reference for GHSA-rg76-677x-56q9github.comRetrieved 3 December 2026
- package reference for GHSA-rg76-677x-56q9github.comRetrieved 3 December 2026
- web reference for GHSA-rg76-677x-56q9coinspect.comRetrieved 3 December 2026
Full record
- Finding
- NMN-2026-0018
- Category
- vulnerability
- Component
- crypto-js (npm)crypto-js: before 4.0.0
- Severity
- Critical. Rated by the source advisory.Severity as labelled by the source advisory GHSA-rg76-677x-56q9. CVSS as given: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H. Noumen has not assessed it.
- Confidence
- High.The affected range comes from the advisory; no system that uses the component has been assessed.
- State
- Candidate. Machine- or researcher-generated; not independently verified.
- Disclosure
- Public
- Mitigation
- Upgrade crypto-js to 4.0.0 or later.
- Discovery method
- imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
- Reproduction
- No reproduction steps recorded.
- Related advisories
- GHSA-rg76-677x-56q9CVE-2026-71851
- Affected systems
- None listed. A link to a system needs its own evidence.
- Attribution
- Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
- Assigned reviewer
- Nobody yet
- Dates
- Created 3 December 2026, 16:48 UTCUpdated 3 December 2026, 16:48 UTC
Summary, as published by the source advisory
### Summary
`CryptoJS.lib.WordArray.random()` in affected versions is not a cryptographically secure random number generator. Nominal requests for 128 or 256 bits of entropy produce effective search spaces of approximately 2^39 and 2^47 possibilities — small enough to enumerate on commodity hardware.
Coinspect's [Ill Bloom](https://www.coinspect.com/blog/ill-bloom-investigation/) investigation confirmed that downstream wallet applications used this function as the entropy source for BIP39 recovery phrases.
**An application is affected only if it uses the vulnerable function to generate security-sensitive values.**
Merely depending on `crypto-js < 4.0.0` is not sufficient to be exploitable.
### Details
The affected implementation used a custom variation of George Marsaglia's Multiply-With-Carry PRNG, seeded from `Math.random()`. It was introduced in 3.1.2-4 (June 2014, commit brix/crypto-js@ff1f003) in response to issue \#7, and was present in every 3.x release except 3.2.0 and 3.2.1. That **change was reverted in 3.3.0** because it was considered a breaking change, so projects tracking the 3.x line could resolve to newer versions that still contained the weak generator.
4.0.0 replaced the generator with the platform's native cryptographic API.
Applying PBKDF2, another KDF, or a cryptographic hash after the vulnerable generator does not restore missing entropy.
### Proof of concept
Coinspect reproduced the attack end to end:
1. Reimplemented the affected `WordArray.random()` behavior.
2. Enumerated the feasible outputs of the underlying PRNG.
3. Converted candidate entropy values into valid BIP39 recovery phrases.
4. Derived private keys and addresses across the relevant derivation paths and networks.
5. Compared derived addresses against public blockchain data.
6. Recovered the private keys controlling funded addresses.
### Impact
An attacker can enumerate the reduced output space and recover security-sensitive values generated through the affected function.
Coinspect documented coordinated drain waves affecting addresses derived from vulnerable recovery phrases. As of July 13, 2026, the measured lower bound of stolen assets across the two events was approximately $5M.
The consequences are persistent:
* Updating an affected library or wallet does not strengthen a previously generated secret.
* Importing the same recovery phrase into an updated software or hardware wallet does not remediate the issue.
* Previously generated secrets may remain exploitable indefinitely.
* Future deposits to an affected address may also be stolen.
* Assets may remain exposed across networks or derivation paths that have not yet shown suspicious activity.
### Remediation
**For projects:**
1. Upgrade `crypto-js` to version `4.0.0` or later. Where possible, replace CryptoJS randomness with the native Web Crypto API or Node.js `crypto` module.
2. Audit direct, downstream, and transitive dependencies for versions of `crypto-js` matching `< 4.0.0`.
3. Determine whether `CryptoJS.lib.WordArray.random()` was used to generate any security-sensitive values.
4. Identify the time periods and application versions during which the vulnerable generation path was present.
5. Treat all long-term secrets generated through an affected path as compromised and rotate them.
6. Notify affected users that installing an update is insufficient when a long-term secret was generated by the vulnerable code.
**For wallet users:** create a new wallet with a newly generated recovery phrase from a trustworthy source and migrate assets to addresses derived from it. Do not import the existing recovery phrase into the new wallet.
### Public address checker
Coinspect provides a public checker for addresses identified in the known Ill Bloom exposed-address datasets:
[https://illbloom.org/](https://illbloom.org/)
Only public blockchain addresses should be entered. Users must **never enter a recovery phrase**, seed phrase, mnemonic,
1 event, oldest first
History
History verified: 1 eventLatest hash0f917bb612500f917bb612501015f8e9fdbb1c2336a182eb5875da96c49b19bc02aecc8ac9a5
Record createdMachine-generated
By advisory-monitor@1.0.0 (agent, machine-generated)
Reason: Imported from public advisory GHSA-rg76-677x-56q9.
Entered the record in the state Candidate.
Event 1 hash0f917bb612500f917bb612501015f8e9fdbb1c2336a182eb5875da96c49b19bc02aecc8ac9a5
About this record
Severity and confidence are rated separately, each with its own reason.
History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.
Corrections keep the value before and after.