~ / search / GHSA-5239-wwwm-4pmq

GHSA-5239-wwwm-4pmq

Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching

Source: GitHub Advisory Database (reviewed) Low CVE-2026-4539

Packages

EcosystemPackageAffectedFixed in
PyPI Pygments < 2.20.0 2.20.0

Details

As written in the advisory (Markdown source, shown as plain text).

A security flaw has been discovered in pygments before 2.20.0. 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

External links from the advisory. They lead to third-party sites.