See https://github.com/pygments/pygments/issues/1625 / https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-20270
Probably we should just update both to 2.7.4. We just updated master to 2.8.0, so it's not vulnerable.
References for CVE-2021-27291:
https://gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14