{"id":"GHSA-xx4c-jj58-r7x6","summary":"Inefficient Regular Expression Complexity in Validator.js","details":"### Impact\nVersions of `validator` prior to 13.7.0 are affected by an inefficient Regular Expression complexity  when using the `rtrim` and `trim` sanitizers.\n\n### Patches\nThe problem has been patched in validator 13.7.0","modified":"2022-07-12T00:11:53Z","published":"2021-11-19T20:14:23Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-11-08T21:27:48Z","nvd_published_at":null,"cwe_ids":["CWE-1333"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/validatorjs/validator.js/security/advisories/GHSA-xx4c-jj58-r7x6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3765"},{"type":"WEB","url":"https://github.com/validatorjs/validator.js/issues/1599"},{"type":"WEB","url":"https://github.com/validatorjs/validator.js/pull/1738"},{"type":"PACKAGE","url":"https://github.com/validatorjs/validator.js"},{"type":"WEB","url":"https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9"}],"affected":[{"package":{"name":"validator","ecosystem":"npm","purl":"pkg:npm/validator"},"ranges":[{"type":"SEMVER","events":[{"introduced":"11.1.0"},{"fixed":"13.7.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-xx4c-jj58-r7x6/GHSA-xx4c-jj58-r7x6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}