Skip to main content
← All vulnerabilities
CVE-2026-4539PYSEC-2026-2987GHSA-5239-WWWM-4PMQ

pygments archetype.py AdlLexer redos

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.20.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a pygments

    2.19.0, 2.19.1, 2.19.2

  • pygmentsPyPI

    fixed in 2.20.0

References 5

vuldb.com

GitHub · pygments/pygments