Advisory

PYSEC-2021-66

Also known as: CVE-2020-28493, GHSA-g3rq-g295-4j3m, SNYK-PYTHON-JINJA2-1012994

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-02-01 20:15 UTC
Modified
2023-11-08 04:03 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: PyPA Advisory Database · CC BY 4.0

Sources & licences