{"id":"GHSA-xx4c-jj58-r7x6","aliases":["GHSA-xx4c-jj58-r7x6"],"related":[],"kind":"vulnerability","state":"published","title":"Inefficient Regular Expression Complexity in Validator.js","summary":"### 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","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"}],"published":"2021-11-19T20:14:23.000Z","modified":"2022-07-12T00:11:53.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"11.1.0","status":"affected","fixed":"13.7.0"}],"ecosystem":"npm","package":"validator","purl":"pkg:npm/validator","source":"ghsa"}],"references":[{"url":"https://github.com/validatorjs/validator.js/security/advisories/GHSA-xx4c-jj58-r7x6","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3765","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/validatorjs/validator.js/issues/1599","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/validatorjs/validator.js/pull/1738","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/validatorjs/validator.js","tags":["package"],"sources":["ghsa"]},{"url":"https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xx4c-jj58-r7x6","url":"https://github.com/advisories/GHSA-xx4c-jj58-r7x6","licence":"CC-BY-4.0","modified":"2022-07-12T00:11:53.000Z"}],"updatedAt":"2026-11-25T22:56:47.111Z"}