Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pygments
  4. ›
  5. CVE-2026-4539

CVE-2026-4539: Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching

March 22, 2026 (updated March 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

  • github.com/advisories/GHSA-5239-wwwm-4pmq
  • github.com/pygments/pygments
  • github.com/pygments/pygments/issues/3058
  • nvd.nist.gov/vuln/detail/CVE-2026-4539
  • vuldb.com/?ctiid.352327
  • vuldb.com/?id.352327
  • vuldb.com/?submit.774685

Code Behaviors & Features

Detect and mitigate CVE-2026-4539 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.19.2

Solution

Unfortunately, there is no solution available yet.

Impact 3.3 LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/Pygments/CVE-2026-4539.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 12:17:55 +0000.