Advisory

GHSA-g3rq-g295-4j3m

Also known as: CVE-2020-28493, PYSEC-2021-66, SNYK-PYTHON-JINJA2-1012994

Summary

Regular Expression Denial of Service (ReDoS) in Jinja2

Details

This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDOS vulnerability of the regex is mainly due to the sub-pattern [a-zA-Z0-9._-]+.[a-zA-Z0-9._-]+ 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-19 21:28 UTC
Modified
2025-02-14 05:26 UTC

Affected packages and fixes

jinja2

PyPI · All systems

Affected

  • introduced 0, fixed 2.11.3 (ecosystem)

Fixed versions

2.11.3

Fix

  • Fixed version 2.11.3
    pip install --upgrade jinja2==2.11.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences