GHSA-xx4c-jj58-r7x6
MEDIUM 5.3CVSS 3.0Inefficient Regular Expression Complexity in Validator.js
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
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | validator | >= 11.1.0, < 13.7.0 | 13.7.0 |
References
- https://github.com/validatorjs/validator.js/security/advisories/GHSA-xx4c-jj58-r7x6 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3765 · ADVISORY
- https://github.com/validatorjs/validator.js/issues/1599 · WEB
- https://github.com/validatorjs/validator.js/pull/1738 · WEB
- https://github.com/validatorjs/validator.js · PACKAGE
- https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9 · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Nov 2021)