PYSEC-2026-2987

vendorUSosv

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

view advisory published 2026-07-13Licence: CC-BY-4.0

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.

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2026-4539US——
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 in…
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan