CVE-2025-68142 Details
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.
A regular expression denial-of-service (ReDOS) vulnerability has been identified in the PyMdown Extensions library, specifically within the figure caption extension (pymdownx.blocks.caption). This issue affects versions prior to 10.16.1. The vulnerability arises from an inefficient regular expression pattern that can be exploited by crafting a malicious payload, leading to significant delays when processing the data. This vulnerability is particularly concerning in systems that handle unchecked user content.
Users can upgrade to PyMdown Extensions version 10.16.1 or later, where this vulnerability has been patched. As an interim measure, avoid using the figure caption extension if processing unknown user content without safeguards.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8 | [email protected] | Patch |
| https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-r6h4-mm7h-8pmq | [email protected] | ExploitPatchVendor Advisory |
| https://pypi.org/project/pymdown-extensions/10.16.1 | [email protected] | ProductRelease Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| facelessuser pymdown extensions | < 10.16.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 3, 2026 | Initial Analysis | [email protected] |
| Dec 16, 2025 | New CVE Received | [email protected] |