MediumGHSA-xx4c-jj58-r7x6
Inefficient Regular Expression Complexity in Validator.js
Published 19 Nov 2021 · Updated 12 Jul 2022
Affected package
validatornpm
- 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.0Details
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
- Linkgithub.com/validatorjs/validator.js/security/advisories/GHSA-xx4c-jj58-r7x6
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-3765
- Linkgithub.com/validatorjs/validator.js/issues/1599
- Linkgithub.com/validatorjs/validator.js/pull/1738
- Packagegithub.com/validatorjs/validator.js
- Linkhuntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.