VDB
Sign up
MEDIUM5.3

GHSA-xx4c-jj58-r7x6

Inefficient Regular Expression Complexity in Validator.js

Quick fix

GHSA-xx4c-jj58-r7x6 — validator: upgrade to the fixed version with the command below.

npm install validator@13.7.0

Details

### Impact Versions of `validator` prior to 13.7.0 are affected by an inefficient Regular Expression complexity when using the `rtrim` and `trim` sanitizers.

### Patches The problem has been patched in validator 13.7.0

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/validator
Introduced in: 11.1.0Fixed in: 13.7.0
Fixnpm install validator@13.7.0

References