Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
Low severity
GitHub Reviewed
Published
Mar 22, 2026
to the GitHub Advisory Database
•
Updated Mar 24, 2026
Description
Published by the National Vulnerability Database
Mar 22, 2026
Published to the GitHub Advisory Database
Mar 22, 2026
Reviewed
Mar 24, 2026
Last updated
Mar 24, 2026
A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular expression complexity. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
References