PyPA Advisory Database
PYSEC-2021-140
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | pygments | From 1.5 before 2.7.4 (fixed in 2.7.4) |