MediumGHSA-xx4c-jj58-r7x6

Inefficient Regular Expression Complexity in Validator.js

Published 19 Nov 2021 · Updated 12 Jul 2022

Affected package

Affected
>=11.1.0 <13.7.0
Fixed in
13.7.0
Update to the fixed version for your release line, for example: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

Is GHSA-xx4c-jj58-r7x6 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected validator, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.