### [CVE-2021-20270](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-20270) ![](https://img.shields.io/static/v1?label=Product&message=python-pygments&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-835&color=brighgreen) ### 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. ### POC #### Reference - https://www.oracle.com/security-alerts/cpuoct2021.html #### Github - https://github.com/HotDB-Community/HotDB-Engine - https://github.com/asa1997/topgear_test - https://github.com/doudoudedi/hackEmbedded