Advisory

GHSA-fw3v-x4f2-v673

Also known as: CVE-2022-34749, PYSEC-2022-237

Summary

Mistune vulnerable to catastrophic backtracking

Details

In Mistune through 2.0.2, support of inline markup is implemented by using regular expressions that can involve a high amount of backtracking on certain edge cases. This behavior is commonly named catastrophic backtracking.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-07-26 00:00 UTC
Modified
2024-09-25 20:22 UTC

Affected packages and fixes

mistune

PyPI · All systems

Affected

  • introduced 2.0.0a1, fixed 2.0.3 (ecosystem)

Fixed versions

2.0.3

Fix

  • Fixed version 2.0.3
    pip install --upgrade mistune==2.0.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