CVE-2020-28493

Regular Expression Denial of Service (ReDoS)

Published Feb 1, 2021 CVSS 3.1 · 5.3 Medium EPSS 3.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0103 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.
Github GHSA Github GHSA GHSA-g3rq-g295-4j3m Regular Expression Denial of Service (ReDoS) in Jinja2
Ubuntu USN Ubuntu USN USN-5701-1 Jinja2 vulnerability
Ubuntu USN Ubuntu USN USN-6599-1 Jinja2 vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00212}

epss

{'score': 0.00207}

Type Values Removed Values Added
Metrics epss

{'score': 0.00207}

epss

{'score': 0.00212}

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 5:24 PM
Reserved
Nov 12, 2020, 12:00 AM
Status
Modified
Published
Feb 1, 2021, 8:15 PM
Modified
Jun 17, 2026, 3:10 AM
Severity
Moderate
Public date
Feb 1, 2021, 12:00 AM