{"id":"CVE-2020-28493","published":"2021-02-01T19:30:16Z","modified":"2024-09-16T17:24:01Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03589,"percentile":0.89701,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/jinja/blob/ab81fd9c277900c85da0c322a2ff9d68a235b2e6/src/jinja2/utils.py%23L20","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/jinja/pull/1343","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVAKCOO7VBVUBM3Q6CBBTPBFNP5NDXF4/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.gentoo.org/glsa/202107-19","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":17.94},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"jinja2","versions":[">= 0.0.0, < unspecified",">= unspecified, < 2.11.3"]}],"affected":[{"ecosystem":"PyPI","package":"Jinja2","vulnerableRanges":["<2.11.3"],"patched":["2.11.3"],"from":["GHSA-g3rq-g295-4j3m","PYSEC-2021-66"],"provenance":"source"}],"summary":{"text":"A Regular Expression Denial of Service (ReDoS) flaw in the jinja2 package (versions before 2.11.3) stems from the _punctuation_re regex, whose multiple wildcards, particularly the last one used to match trailing punctuation, can be abused. An attacker with network access can trigger it without authentication or user interaction by submitting crafted input, causing a denial of service, and the issue can be mitigated by formatting user content with Markdown instead of the urlize filter or by enforcing request timeouts and process memory limits.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:36Z"},"euvd":{"id":"EUVD-2021-0103","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2014-0012","published":"2014-05-19","fixed":"2.7.3","kev":false},{"cve":"CVE-2016-10745","published":"2019-04-08","fixed":"2.8.1","kev":false},{"cve":"CVE-2019-10906","published":"2019-04-06","fixed":"2.10.1","kev":false,"link":{"from":"CVE-2019-10906","to":"CVE-2020-28493","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Jinja2","fromFixed":"2.10.1","toFixed":"2.11.3","daysApart":667}]}},{"cve":"CVE-2020-28493","published":"2021-02-01","fixed":"2.11.3","kev":false},{"cve":"CVE-2024-34064","published":"2024-05-06","fixed":"3.1.4","kev":false},{"cve":"CVE-2025-27516","published":"2025-03-05","fixed":"3.1.6","kev":false}],"package":"PyPI:Jinja2"}}