{"id":"GHSA-xx4c-jj58-r7x6","aliases":["ROOT-APP-NPM-GHSA-xx4c-jj58-r7x6"],"status":"published","title":"Inefficient Regular Expression Complexity in Validator.js","description":"### 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","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333"],"published":"2021-11-19T20:14:23Z","modified":"2026-09-11T09:15:04Z","fixes":[{"ecosystem":"npm","package":"validator","fixed_in":["13.7.0"],"sources":["ghsa","osv"]},{"ecosystem":"Root:npm","package":"validator","fixed_in":["13.7.0-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/validator","fixed_in":["13.7.0-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"validator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.1.0"},{"fixed":"13.7.0"}]}]},{"source":"osv","ecosystem":"npm","package":"validator","ranges":[{"type":"SEMVER","events":[{"introduced":"11.1.0"},{"fixed":"13.7.0"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"validator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"13.7.0-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/validator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"13.7.0-root.io.1"}]}]}],"references":[{"url":"https://github.com/validatorjs/validator.js/security/advisories/GHSA-xx4c-jj58-r7x6","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3765","tags":["advisory"]},{"url":"https://github.com/validatorjs/validator.js/issues/1599","tags":["web"]},{"url":"https://github.com/validatorjs/validator.js/pull/1738","tags":["web"]},{"url":"https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9/"},{"url":"https://github.com/advisories/GHSA-xx4c-jj58-r7x6"},{"url":"https://github.com/validatorjs/validator.js","tags":["package"]},{"url":"https://huntr.dev/bounties/c37e975c-21a3-4c5f-9b57-04d63b28cfc9","tags":["web"]}],"sources":{"ghsa":[{"id":"GHSA-xx4c-jj58-r7x6","title":"Inefficient Regular Expression Complexity in Validator.js","description":"### 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","status":"published","published":"2021-11-19T20:14:23Z","modified":"2023-01-11T05:06:40Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-xx4c-jj58-r7x6","title":"Inefficient Regular Expression Complexity in Validator.js","description":"### 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","status":"published","published":"2021-11-19T20:14:23Z","modified":"2022-07-12T00:11:53Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:47:00.604718Z"},{"id":"ROOT-APP-NPM-GHSA-xx4c-jj58-r7x6","title":"GHSA-xx4c-jj58-r7x6 in validator - Patched by Root","description":"Root has patched GHSA-xx4c-jj58-r7x6 in the validator package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-09-11T09:00:31Z","modified":"2026-09-11T09:15:04.57016991Z","updated_at":"2026-11-02T15:53:27.940619Z"}]}}
