CVE-2020-28493
Regular Expression Denial of Service (ReDoS) in Jinja2
5.3
MEDIUM
CVSS 3.1
EPSS 0.21%
Description
This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDoS vulnerability is mainly due to the `_punctuation_re regex` operator and its use of multiple wildcards. The last wildcard is the most exploitable as it searches for trailing punctuation. 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.
How to fix CVE-2020-28493
To remediate CVE-2020-28493, upgrade the affected package to a fixed version below.
- —upgrade to 1.11.3-r0 or later
- —upgrade to 2.11.3-1 or later
- —upgrade to 2.11.3 or later
- —upgrade to 2.11.3 or later
Is CVE-2020-28493 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 1.11.3-r0
- from 0, < 2.11.3-1
- from 0, < 2.11.3
- from 0, < 2.11.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |