# CVE-2021-3765: Inefficient Regular Expression Complexity in validatorjs/validator.js

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.79%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-02T07:05:10.000Z
- Modified: 2026-06-17T04:05:43.340Z
- Also known as: GHSA-qgmg-gppg-76g5
- Weaknesses: CWE-1333
- Assigned by: @huntrdev

## Description

validator.js is vulnerable to Inefficient Regular Expression Complexity

(As written by CVE List.)

## Affected

- validatorjs validatorjs/validator.js: from unspecified before 13.7.0
- validator (npm): before 13.7.0
- validator_project validator: before 13.7.0

## Every score

- @huntrdev: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/validatorjs/validator.js/commit/496fc8b2a7f5997acaaec33cc44d0b8dba5fb5e1> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3765> (advisory)
- <https://github.com/validatorjs/validator.js> (package)

## Sources

- CVE List: [CVE-2021-3765](https://www.cve.org/CVERecord?id=CVE-2021-3765), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-qgmg-gppg-76g5](https://github.com/advisories/GHSA-qgmg-gppg-76g5), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-3765](https://nvd.nist.gov/vuln/detail/CVE-2021-3765), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3765 · Whole record: https://cve.day/CVE-2021-3765.json · Rebuilt by cve.day 2026-11-25T22:58:05.297Z
