Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. flask-restx
  4. ›
  5. CVE-2021-32838

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

September 8, 2021 (updated September 20, 2024)

Flask RESTX contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex.

References

  • github.com/advisories/GHSA-3q6g-vf58-7m4g
  • github.com/pypa/advisory-database/tree/main/vulns/flask-restx/PYSEC-2021-325.yaml
  • github.com/python-restx/flask-restx
  • github.com/python-restx/flask-restx/blob/fd99fe11a88531f5f3441a278f7020589f9d2cc0/flask_restx/inputs.py
  • github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656da
  • github.com/python-restx/flask-restx/issues/372
  • github.com/python-restx/flask-restx/security/advisories/GHSA-3q6g-vf58-7m4g
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3
  • nvd.nist.gov/vuln/detail/CVE-2021-32838
  • pypi.org/project/flask-restx

Code Behaviors & Features

Detect and mitigate CVE-2021-32838 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.5.1

Fixed versions

  • 0.5.1

Solution

Upgrade to version 0.5.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/flask-restx/CVE-2021-32838.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:21 +0000.