{"id":"CVE-2021-32838","aliases":["CVE-2021-32838","GHSA-3q6g-vf58-7m4g","PYSEC-2021-325"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service in flask-restx","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Flask-RESTX (paquete pypi flask-restx) es un fork impulsado por la comunidad de Flask-RESTPlus. Flask-RESTX versiones anteriores a 0.5.1, es vulnerable a ReDoS (Denegación de Servicio por Expresión Regular) en la función email_regex. Esto ha sido corregido en la versión 0.5.1","source":"nvd"}],"published":"2021-09-08T15:41:15.000Z","modified":"2026-07-08T06:28:20.629Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"version":"< 0.5.1","status":"affected"}],"vendor":"python-restx","product":"flask-restx","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5.1"}],"ecosystem":"PyPI","package":"flask-restx","purl":"pkg:pypi/flask-restx","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.5.1"}],"vendor":"flask-restx_project","product":"flask-restx","cpe":"cpe:2.3:a:flask-restx_project:flask-restx:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"bab31e085f355dd73858fd3715f7ed71849656da"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5.1"}],"ecosystem":"PyPI","package":"flask-restx","purl":"pkg:pypi/flask-restx","repo":"https://github.com/python-restx/flask-restx","source":"pysec"}],"references":[{"url":"https://github.com/advisories/GHSA-3q6g-vf58-7m4g","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-restx/flask-restx/issues/372","tags":["issue-tracking","patch","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656da","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/python-restx/flask-restx/blob/fd99fe11a88531f5f3441a278f7020589f9d2cc0/flask_restx/inputs.py#L51","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://pypi.org/project/flask-restx/","tags":["package","product","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/python-restx/flask-restx/security/advisories/GHSA-3q6g-vf58-7m4g","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32838","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/flask-restx/PYSEC-2021-325.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-restx/flask-restx","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/flask-restx","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32838","url":"https://www.cve.org/CVERecord?id=CVE-2021-32838","licence":"CVE Terms of Use","modified":"2024-08-03T23:33:55.752Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3q6g-vf58-7m4g","url":"https://github.com/advisories/GHSA-3q6g-vf58-7m4g","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:20.629Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32838","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32838","licence":"Public domain","modified":"2026-06-17T03:53:44.003Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-325","url":"https://osv.dev/vulnerability/PYSEC-2021-325","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:01.923Z"}],"updatedAt":"2026-11-25T22:58:04.083Z","epss":{"score":0.01864,"percentile":0.79885,"date":"2026-12-01T12:00:22.000Z"}}