—
PYSEC-2021-325
Quick fix
PYSEC-2021-325 — flask-restx: upgrade to the fixed version with the command below.
pip install --upgrade 'flask-restx>=bab31e085f355dd73858fd3715f7ed71849656da'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/flask-restx
Introduced in:
0Fixed in: bab31e085f355dd73858fd3715f7ed71849656daFix
pip install --upgrade 'flask-restx>=bab31e085f355dd73858fd3715f7ed71849656da'References
- https://github.com/python-restx/flask-restx/issues/372[REPORT]
- https://pypi.org/project/flask-restx/[PACKAGE]
- https://github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656da[FIX]
- https://github.com/advisories/GHSA-3q6g-vf58-7m4g[ADVISORY]
- https://github.com/python-restx/flask-restx/blob/fd99fe11a88531f5f3441a278f7020589f9d2cc0/flask_restx/inputs.py#L51[WEB]