ADVISORIES

Vulnerability

CVE-2022-40896

A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

13 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • AZL-27502

    CVE-2022-40896 affecting package python-pygments for versions less than 2.4.2-1

    CVE-2022-40896 Azure Linux Updated 21 April 2026
  • AZL-35139

    CVE-2022-40896 affecting package python-pygments for versions less than 2.4.2-1

    CVE-2022-40896 Azure Linux Updated 23 November 2026
  • DEBIAN-CVE-2022-40896

    A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

    CVE-2022-40896 Debian Updated 20 November 2026
  • GHSA-mrwq-x4v8-fh7p

    Pygments vulnerable to ReDoS

    Moderate CVE-2022-40896 PyPI Updated 24 October 2024
  • OESA-2023-1477

    python-pygments security update

    Medium CVE-2022-40896 openEuler Updated 18 August 2026
  • OESA-2023-1478

    python-pygments security update

    Medium CVE-2022-40896 openEuler Updated 18 August 2026
  • OESA-2023-1479

    python-pygments security update

    Medium CVE-2022-40896 openEuler Updated 18 August 2026
  • PYSEC-2023-117

    A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

    CVE-2022-40896 PyPI Updated 10 June 2026
  • RHSA-2024:1057

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2022-40896CVE-2023-44271CVE-2023-47627CVE-2023-49081 Red Hat Updated 13 November 2026
  • RHSA-2024:2010

    Red Hat Security Advisory: Satellite 6.15.0 release

    CVE-2022-40896CVE-2023-36479CVE-2023-37276CVE-2023-38037 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2022-40896

    pygments: ReDoS in pygments

    Moderate CVE-2022-40896 Red Hat Updated 5 November 2026
  • UBUNTU-CVE-2022-40896

    A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

    CVE-2022-40896 Ubuntu Updated 4 February 2026
  • USN-7128-1

    pygments vulnerability

    CVE-2022-40896 Ubuntu Updated 10 February 2026

References