Intel

AIKIDO-2025-10835

node-redlock is vulnerable to Insecure Randomness

Insecure Randomness Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 26, 2025

20

Low Risk

This Affects:

JSnode-redlock
1.1.0 - 2.2.1
Fixed in 2.3.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Insecure Randomness in Lock Tokens due to the use of Math.random() for generating lock tokens, which is not cryptographically secure and produces predictable values. An attacker could exploit this by predicting the lock tokens to bypass authentication mechanisms, potentially leading to unauthorized access, privilege escalation, or data integrity issues.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

node-redlock is vulnerable to Insecure Randomness in versions 1.1.0 - 2.2.1.

How to fix this

Upgrade the node-redlock library to the patch version.