ADVISORIES

Vulnerability

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.

34 advisories report this vulnerability, across 12 ecosystems.

Advisories in Azure Linux

  • AZL-35137

    CVE-2021-20270 affecting package python-pygments for versions less than 2.7.4-1

    CVE-2021-20270 Azure Linux Updated 22 October 2026
  • AZL-6811

    CVE-2021-20270 affecting package python-pygments for versions less than 2.4.2-7

    CVE-2021-20270 Azure Linux Updated 21 April 2026

References