MEDIUM 5.5 PyPI
Pygments vulnerable to ReDoS
GHSA-mrwq-x4v8-fh7p · CVE-2022-40896 · PYSEC-2023-117
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
A ReDoS issue was discovered in pygments/lexers/smithy.py in Pygments until 2.15.0 via SmithyLexer.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2022-40896
- WEB https://github.com/pygments/pygments/commit/97eb3d5ec7c1b3ea4fcf9dee30a2309cf92bd194
- WEB https://github.com/pygments/pygments/commit/dd52102c38ebe78cd57748e09f38929fd283ad04
- WEB https://github.com/pygments/pygments/commit/fdf182a7af85b1deeeb637ca970d31935e7c9d52
- PACKAGE https://github.com/pygments/pygments
- WEB https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61
- WEB https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2023-117.yaml
- WEB https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3
- WEB https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO
- WEB https://pypi.org/project/Pygments
- WEB https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2
Ready to move
Start Securing
Free, no credit card | First findings in minutes