ADVISORIES

openEuler Security Advisory

OESA-2026-1873

python-pygments security update

Details

\

Security Fix(es):

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.(CVE-2026-4539)

Affected packages

EcosystemPackageAffected versions
openEuler:24.03-LTS-SP1python-pygments
All versions before 2.17.2-2.oe2403sp1 (fixed in 2.17.2-2.oe2403sp1)
openEuler:24.03-LTS-SP2python-pygments
All versions before 2.17.2-2.oe2403sp2 (fixed in 2.17.2-2.oe2403sp2)
openEuler:24.03-LTS-SP3python-pygments
All versions before 2.17.2-2.oe2403sp3 (fixed in 2.17.2-2.oe2403sp3)
openEuler:20.03-LTS-SP4python-pygments
All versions before 2.5.2-7.oe2003sp4 (fixed in 2.5.2-7.oe2003sp4)
openEuler:22.03-LTS-SP4python-pygments
All versions before 2.10.0-5.oe2203sp4 (fixed in 2.10.0-5.oe2203sp4)
openEuler:24.03-LTSpython-pygments
All versions before 2.17.2-2.oe2403 (fixed in 2.17.2-2.oe2403)

References