CVE-2025-68142
No exploitation reported by the sources we read.
- Published2025-12-16
- Fixed in10.16.1
- WeaknessCWE-1333
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2025-12-1618:16CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.16 | < 10.16.1 | 10.16.1 | NVD · OSV |
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-extensionsAffected
- = < 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
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
Fix
- Update Facelessuser pymdown extensions to 10.16.1
- 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…
- No fix available, says the vendor Red Hat Product Security CVE-2025-68142 · 53 productsFix deferred
- No fix available, says the vendor Red Hat Product Security CVE-2025-68142 · 4 productsAffected
Advisories and patches
- github.comPatch
- github.comPatch · Vendor Advisory
- pypi.orgRelease Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- 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
- EUVD-2025-203840same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-r6h4-mm7h-8pmqsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2026-1825same flawPyPA Advisory Database · CC-BY-4.0
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?
Is CVE-2025-68142 actively exploited?
What is the CVSS score for CVE-2025-68142?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-r6h4-mm7h-8pmq
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0