CVE-2020-28493 Affecting py3-jinja2 package, versions <1.11.3-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.24% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE320-PY3JINJA2-7011103
  • published23 May 2024
  • disclosed1 Feb 2021

Introduced: 1 Feb 2021

CVE-2020-28493  (opens in a new tab)

How to fix?

Upgrade Alpine:3.20 py3-jinja2 to version 1.11.3-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-jinja2 package and not the py3-jinja2 package as distributed by Alpine. See How to fix? for Alpine:3.20 relevant fixed versions and status.

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.

CVSS Scores

version 3.1