# CVE-2020-28493: Regular Expression Denial of Service (ReDoS)

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.59%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-01T19:30:16.601Z
- Modified: 2026-06-17T03:10:32.070Z
- Also known as: GHSA-g3rq-g295-4j3m, PYSEC-2021-66, SNYK-PYTHON-JINJA2-1012994
- Weaknesses: CWE-400
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- jinja2: from 0.0.0 before unspecified; from unspecified before 2.11.3
- jinja2 (PyPI): before 2.11.3
- palletsprojects jinja: before 2.11.3
- fedoraproject fedora: 33

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994> (exploit, advisory, third-party-advisory, web)
- <https://github.com/pallets/jinja/blob/ab81fd9c277900c85da0c322a2ff9d68a235b2e6/src/jinja2/utils.py%23L20> (broken-link, web)
- <https://github.com/pallets/jinja/pull/1343> (patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVAKCOO7VBVUBM3Q6CBBTPBFNP5NDXF4/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202107-19> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-28493> (advisory)
- <https://github.com/pallets/jinja/commit/15ef8f09b659f9100610583938005a7a10472d4d> (web)
- <https://github.com/advisories/GHSA-g3rq-g295-4j3m> (advisory)
- <https://github.com/pallets/jinja> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2021-66.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVAKCOO7VBVUBM3Q6CBBTPBFNP5NDXF4> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVAKCOO7VBVUBM3Q6CBBTPBFNP5NDXF4/> (web)

## Sources

- CVE List: [CVE-2020-28493](https://www.cve.org/CVERecord?id=CVE-2020-28493), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-g3rq-g295-4j3m](https://github.com/advisories/GHSA-g3rq-g295-4j3m), CC-BY-4.0, modified 2025-02-14
- NVD: [CVE-2020-28493](https://nvd.nist.gov/vuln/detail/CVE-2020-28493), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-66](https://osv.dev/vulnerability/PYSEC-2021-66), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-28493 · Whole record: https://cve.day/CVE-2020-28493.json · Rebuilt by cve.day 2026-11-25T22:57:57.249Z
