Live threats

All CVEs / Palletsprojects

CVE-2020-28493Palletsprojects Jinja

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
3.6%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Feb 1, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Jinja.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI jinja2 < 2.11.3 2.11.3 pip install "jinja2>=2.11.3"
PyPI jinja2 < 2.11.3 2.11.3 pip install "jinja2>=2.11.3"

Per OSV / GitHub Advisories (GHSA-g3rq-g295-4j3m, PYSEC-2021-66). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
palletsprojectsjinja< 2.11.3
fedoraprojectfedora33

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.