# CVE-2021-20270

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.

- CVSS: 7.5 HIGH
- EPSS: unknown
- In CISA KEV: no
- Published: 2021-03-23

Sources: NVD, OSV, CISA, FIRST. Last checked 20 Nov 2026.
