# CVE-2021-32838: Regular Expression Denial of Service in flask-restx

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.86%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-09-08T15:41:15.000Z
- Modified: 2026-07-08T06:28:20.629Z
- Also known as: GHSA-3q6g-vf58-7m4g, PYSEC-2021-325
- Weaknesses: CWE-400, CWE-1333
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-restx flask-restx: < 0.5.1
- flask-restx (PyPI): before 0.5.1; before bab31e085f355dd73858fd3715f7ed71849656da
- flask-restx_project flask-restx: before 0.5.1
- fedoraproject fedora: 33; 34

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/advisories/GHSA-3q6g-vf58-7m4g> (advisory, third-party-advisory)
- <https://github.com/python-restx/flask-restx/issues/372> (issue-tracking, patch, report, third-party-advisory, web)
- <https://github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656da> (fix, patch, third-party-advisory, web)
- <https://github.com/python-restx/flask-restx/blob/fd99fe11a88531f5f3441a278f7020589f9d2cc0/flask_restx/inputs.py#L51> (patch, third-party-advisory, web)
- <https://pypi.org/project/flask-restx/> (package, product, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3/> (vendor-advisory)
- <https://github.com/python-restx/flask-restx/security/advisories/GHSA-3q6g-vf58-7m4g> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32838> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-restx/PYSEC-2021-325.yaml> (web)
- <https://github.com/python-restx/flask-restx> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3> (web)
- <https://pypi.org/project/flask-restx> (web)

## Sources

- CVE List: [CVE-2021-32838](https://www.cve.org/CVERecord?id=CVE-2021-32838), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-3q6g-vf58-7m4g](https://github.com/advisories/GHSA-3q6g-vf58-7m4g), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32838](https://nvd.nist.gov/vuln/detail/CVE-2021-32838), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-325](https://osv.dev/vulnerability/PYSEC-2021-325), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-32838 · Whole record: https://cve.day/CVE-2021-32838.json · Rebuilt by cve.day 2026-11-25T22:58:04.083Z
