CVE-2020-28493Palletsprojects Jinja
Medium 5.3 No auth needed
Follow: this CVE · Palletsprojects · Palletsprojects Jinja We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Jinja.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| palletsprojects | jinja | < 2.11.3 |
| fedoraproject | fedora | 33 |
Official advisories
- python313-Jinja2-3.1.6-2.4 on GA media · SUSE · openSUSE-SU-2026:11992-1 · Oct 4, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Patch Third Party Advisory
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- snyk.io Exploit Third Party Advisory