CVE-2020-28493
python-jinja2: ReDoS vulnerability in the urlize filter
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 1, 2021
Updated · July 3, 2026
Description
A flaw was found in python-jinja2. The ReDOS vulnerability of the regex is mainly due to the sub-pattern [a-zA-Z0-9.-]+.[a-zA-Z0-9.-]+. This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory.
Statement
This flaw is out of support scope for the following products:
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Ceph Storage 2
To learn more about Red Hat Enterprise Linux support scopes, please see https://access.redhat.com/support/policy/updates/errata/
In Red Hat OpenStack Platform, because python-jinja2 is not directly customer exposed, the Impact has been moved to Low and no updated will be provided at this time for the RHOSP python-jinja2 package.
Red Hat Quay does not make use of the vulnerable function, so the impact is Low.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
If using the jinja2 library as a developer, this flaw can be mitigated by not using the vulnerable urlize() filter, and instead, using Markdown to format user content.
CVSS / CWE
CVSS 3.1 · 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE-1333 · Inefficient Regular Expression Complexity