Inefficient Regular Expression Complexity Affecting python3-pygments-doc package, versions <0:2.2.0-3.amzn2.0.4


Severity

Recommended
0.0
low
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PYTHON3PYGMENTSDOC-18059848
  • published21 Jul 2026
  • disclosed22 Mar 2026

Introduced: 22 Mar 2026

CVE-2026-4539  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python3-pygments-doc to version 0:2.2.0-3.amzn2.0.4 or higher.
This issue was patched in ALAS2-2026-3817.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-pygments-doc package and not the python3-pygments-doc package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1