VDB
Sign up
HIGH7.5

GHSA-35q2-47q7-3pc3

Node-Redis potential exponential regex in monitor mode

Quick fix

GHSA-35q2-47q7-3pc3 — redis: upgrade to the fixed version with the command below.

npm install redis@3.1.1

Details

### Impact When a client is in monitoring mode, the regex begin used to detected monitor messages could cause exponential backtracking on some strings. This issue could lead to a denial of service.

### Patches The problem was fixed in commit [`2d11b6d`](https://github.com/NodeRedis/node-redis/commit/2d11b6dc9b9774464a91fb4b448bad8bf699629e) and was released in version `3.1.1`.

### References #1569 (GHSL-2021-026)

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/redis
Introduced in: 2.6.0Fixed in: 3.1.1
Fixnpm install redis@3.1.1

References