pygments
Affected
- introduced
1.5, fixed2.7.4(ecosystem)
Fixed versions
2.7.4
Fix
- Fixed version
2.7.4pip install --upgrade pygments==2.7.4
Advisory
Also known as: CVE-2021-20270, PYSEC-2021-140
Infinite Loop in Pygments
An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.
High Basis: The source's own band: HIGH
1.5, fixed 2.7.4 (ecosystem)2.7.4
2.7.4pip install --upgrade pygments==2.7.4Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0