HIGH 7.5 PyPI

Infinite Loop in Pygments

GHSA-9w8r-397f-prfh · CVE-2021-20270 · PYSEC-2021-140

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes