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 Ubuntu

  • UBUNTU-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…

    CVE-2021-20270 Ubuntu Updated 24 November 2026
  • USN-4885-1

    pygments vulnerability

    CVE-2021-20270 Ubuntu Updated 24 November 2026
  • USN-4897-2

    pygments vulnerabilities

    CVE-2021-20270CVE-2021-27291 Ubuntu Updated 24 November 2026

References