What’s Vulnerable › Vulnerabilities
CVE-2021-3765: Inefficient Regular Expression Complexity in validatorjs/validator.js
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-11-02 · updated 2026-06-17
- Weakness: CWE-1333
Description
validator.js is vulnerable to Inefficient Regular Expression Complexity
Affected products
- validatorjs/validator.js: before 13.7.0 — fixed in 13.7.0
How to fix
Upgrade to a fixed version: validatorjs/validator.js 13.7.0. Check the vendor advisory for mitigations.
References
- https://github.com/validatorjs/validator.js/commit/496fc8b2a7f5997acaaec33cc44d0b8dba5fb5e1
- https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9
- https://github.com/validatorjs/validator.js/commit/496fc8b2a7f5997acaaec33cc44d0b8dba5fb5e1
- https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9
Get alerted when CVE-2021-3765 or the next vulnerability affects your stack