PyPI (Python)Worst: Critical5 advisories

pygments: known vulnerabilities

pygments has 5 reviewed security advisories in the GitHub Advisory Database — 1 critical, 2 high, 1 moderate, 1 low. The most recent was published 2026-03-22. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the pygments versions running across your servers, containers and images, and ranks what to patch first.

How to fix pygments

Upgrade pygments to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade pygments (pin pygments>=2.20.0)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (5)

Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching Low 3.3 CWE-1333 CWE-400 — Affected: before 2.20.0. Fixed in 2.20.0. Published 2026-03-22. GHSA-5239-wwwm-4pmq · CVE-2026-4539
Pygments vulnerable to Regular Expression Denial of Service (ReDoS) High 7.5 CWE-400 — Affected: from 1.1 up to 2.7.4. Fixed in 2.7.4. Published 2021-03-17. GHSA-pq64-v7f5-gqh8 · CVE-2021-27291
Command Injection in Pygments Critical 9.0 CWE-78 — Affected: from 1.2.2 up to 2.1. Fixed in 2.1. Published 2016-01-08. GHSA-fff8-4w9p-7v76 · CVE-2015-8557

Find pygments across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.