Skip to main content
No exploitation reportedFix available

CVE-2025-68142

No exploitation reported by the sources we read.

  • Published2025-12-16
  • Fixed in10.16.1
  • WeaknessCWE-1333

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

PyMdown Extensions is a set of extensions for the `Python-Markdown` markdown project. Versions prior to 10.16.1 have a ReDOS bug found within the figure caption extension (`pymdownx.blocks.caption`). In systems that take unchecked user content, this could cause long hanges when processing the data if a malicious payload was crafted. This issue is patched in Release 10.16.1. As a workaround, those who process unknown user content without timeouts or other safeguards in place to prevent really large, malicious content being aimed at systems may avoid the use of `pymdownx.blocks.caption` until they're able to upgrade.

Timeline

dates in UTC
  1. 2025-12-1618:16CVE publishedNVD

Versions per branch

NVD · OSV
Facelessuser pymdown extensions
BranchAffectedFixed in
10.16< 10.16.110.16.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • facelessuser pymdown-extensions
    Affected
    • = < 10.16.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-12-16

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pymdown-extensionsUbuntu:26.10all versions · no fixed version listed
  • pymdown-extensionsUbuntu:26.04:LTSall versions · no fixed version listed
  • pymdown-extensionsUbuntu:25.10all versions · no fixed version listed
  • pymdown-extensionsUbuntu:24.04:LTSall versions · no fixed version listed
  • pymdown-extensionsDebian:14all versions · fixed in 10.13-4
  • pymdown-extensionsDebian:13all versions · fixed in 10.13-1+deb13u1

Vendor advisories

  • CVE-2025-68142 Red Hat Product Security57 known affected

    PyMdown: pymdown-extensions: PyMdown Extensions: Regular Expression Denial of Service in figure caption extension

    rhai/assisted-installer-agent-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · rhai/assisted-installer-controller-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · rhai/assisted-installer-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · +54 more

Full record on NVD

Fix

  1. Update Facelessuser pymdown extensions to 10.16.1
  2. Workaround from the vendor Red Hat Product Security CVE-2025-68142 · 57 productsTo mitigate this issue, avoid using the `pymdownx.blocks.caption` extension within PyMdown Extensions when processing untrusted user-provided markdown content. This can be achieved by disabling the extension in the application's configuration or by ensuring that input is properly sanitized and proc…
  3. No fix available, says the vendor Red Hat Product Security CVE-2025-68142 · 53 productsFix deferred
  4. No fix available, says the vendor Red Hat Product Security CVE-2025-68142 · 4 productsAffected

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-12-17
  • CNACVSS 4.02.7known since 2026-10-23
  • NVDCVSS 3.15.3read 2026-10-23
  • CNAweakness (CWE)CWE-1333known since 2026-10-23
  • FIRST EPSSEPSS score0.6 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryLow2025-12-16

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2025-12-16
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-r6h4-mm7h-8pmq

Frequently asked questions

What is CVE-2025-68142?

PyMdown Extensions is a set of extensions for the `Python-Markdown` markdown project. Versions prior to 10.16.1 have a ReDOS bug found within the figure caption extension (`pymdownx.blocks.caption`). In systems that take unchecked user content, this could cause long hanges when processing the data if a malicious payload was crafted. This issue is patched in Release 10.16.1. As a workaround, those who process unknown user content without timeouts or other safeguards in place to prevent really large, malicious content being aimed at systems may avoid the use of `pymdownx.blocks.caption` until they're able to upgrade.

Is CVE-2025-68142 actively exploited?

Active exploitation of CVE-2025-68142 has not been confirmed. Its EPSS score was 0.6% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-68142?

CVE-2025-68142 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

Running PyMdown? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record