CVE-2026-61500: Insecure Math Random State Leakcve-2026-61500-insecure-math-random-state-leak
Using Math.random() to generate session IDs, tokens, or cryptographic keys can leak the internal PRNG state. Math.random() is predictably non-cryptographic, and attackers can reconstruct its internal state to predict past and future values, leading to session forgery or access to cryptographic keys. Use `crypto.randomUUID()` or `crypto.randomBytes()` for sec