{"id":"CVE-2021-32838","aliases":["EUVD-2021-0085","GHSA-3q6g-vf58-7m4g","MGASA-2021-0473","PYSEC-2021-325"],"status":"published","title":"Regular Expression Denial of Service in flask-restx","description":"Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.01864,"percentile":0.79579,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333","CWE-400"],"published":"2021-09-08T15:41:15Z","modified":"2026-10-20T10:53:46Z","fixes":[{"ecosystem":"PyPI","package":"flask-restx","fixed_in":["0.5.1"],"sources":["ghsa","osv"]},{"ecosystem":"Mageia:8","package":"python-flask-restx","fixed_in":["0.5.1-1.mga8"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"flask-restx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"flask-restx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.1"}]}],"versions":["0.0.1.dev0","0.1.0","0.1.1","0.2.0","0.3.0","0.4.0","0.5.0"]},{"source":"osv","ecosystem":"Mageia:8","package":"python-flask-restx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.1-1.mga8"}]}]},{"source":"osv","ecosystem":"PyPI","package":"flask-restx","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"bab31e085f355dd73858fd3715f7ed71849656da"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.1"}]}],"versions":["0.0.1.dev0","0.1.0","0.1.1","0.2.0","0.3.0","0.4.0","0.5.0"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"flask-restx_project","product":"flask-restx"},{"vendor":"python-restx","product":"flask-restx"}],"references":[{"url":"https://github.com/advisories/GHSA-3q6g-vf58-7m4g","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/python-restx/flask-restx/issues/372","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656da","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/python-restx/flask-restx/blob/fd99fe11a88531f5f3441a278f7020589f9d2cc0/flask_restx/inputs.py#L51","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://pypi.org/project/flask-restx/","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","package"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://github.com/python-restx/flask-restx/security/advisories/GHSA-3q6g-vf58-7m4g","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32838","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/flask-restx/PYSEC-2021-325.yaml","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3","tags":["web"]},{"url":"https://pypi.org/project/flask-restx","tags":["web"]},{"url":"https://github.com/python-restx/flask-restx","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2021-0473.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29509","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3/","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-32838","title":"Regular Expression Denial of Service in flask-restx","description":"Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.","status":"published","published":"2021-09-20T17:30:13Z","modified":"2024-08-03T23:33:55.752Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:33:07.014772Z"}],"euvd":[{"id":"EUVD-2021-0085","description":"Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.","status":"published","published":"2021-09-20T17:30:13Z","modified":"2024-08-03T23:33:55Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T03:24:35.855495Z"}],"ghsa":[{"id":"GHSA-3q6g-vf58-7m4g","title":"Regular Expression Denial of Service in flask-restx","description":"Flask RESTX contains a regular expression that is vulnerable to [ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) (Regular Expression Denial of Service) in `email_regex`.\n","status":"published","published":"2021-09-08T15:41:15Z","modified":"2024-09-20T17:57:58Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-1333"],"updated_at":"2026-11-02T14:38:04.690827Z"}],"nvd":[{"id":"CVE-2021-32838","description":"Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.","status":"published","published":"2021-09-20T18:15:11.01Z","modified":"2026-06-17T03:53:44.003Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:06:58.933037Z"}],"osv":[{"id":"CVE-2021-32838","description":"Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.","status":"published","published":"2021-09-20T18:15:11.01Z","modified":"2026-10-20T10:53:46.68208609Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.793849Z"},{"id":"GHSA-3q6g-vf58-7m4g","title":"Regular Expression Denial of Service in flask-restx","description":"Flask RESTX contains a regular expression that is vulnerable to [ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) (Regular Expression Denial of Service) in `email_regex`.\n","status":"published","published":"2021-09-08T15:41:15Z","modified":"2026-07-08T06:28:20.629860342Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-1333","CWE-400"],"updated_at":"2026-11-02T15:46:36.092962Z"},{"id":"MGASA-2021-0473","title":"Updated python-flask-restx packages fix security vulnerability","description":"Regular expression denial of service in email_regex.\n","status":"published","published":"2021-10-13T19:39:52Z","modified":"2026-04-16T04:42:33.185820741Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"PYSEC-2021-325","description":"Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.","status":"published","published":"2021-09-20T18:15:00Z","modified":"2023-11-08T04:06:01.923801Z","updated_at":"2026-11-02T15:52:52.682031Z"}]}}
