CVE-2025-68142: PYSEC-2026-1825 - PyMdown Extensions has a ReDOS bug in its Figure Capture extension

CVE-2025-68142 · Severity: medium · CVSS 4 · Published 2026-07-07

PyMdown Extensions has a ReDOS bug in its Figure Capture extension

Technologies: pymdown-extensions (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2025-68142 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-68142 being exploited in the wild.
How severe is CVE-2025-68142?
Medium severity, with a CVSS score of 4, published 7 July 2026.
Which products and versions are affected?
pymdown-extensions (PyPI) ECOSYSTEM:introduced=0,fixed=10.16.1.
Is there a fix for CVE-2025-68142?
Yes. pymdown-extensions (PyPI): upgrade to 10.16.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-68142?
Check whether you run pymdown-extensions (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • pymdown-extensions (PyPI): upgrade to 10.16.1 or later
    pip install "pymdown-extensions>=10.16.1"

Affected products

  • pymdown-extensions (PyPI) ECOSYSTEM:introduced=0,fixed=10.16.1

Identifiers

  • CVE-2025-68142
  • GHSA-r6h4-mm7h-8pmq
  • PYSEC-2026-1825

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.