CVE-2025-68142
LOW 2.7CVSS 4.0PyMdown Extensions has a ReDOS bug in its Figure Capture extension
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.
- Published
- 16 Dec 2025
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1333
- Also known as
- GHSA-r6h4-mm7h-8pmqPYSEC-2026-1825
- Sources
- NVDJSONOSV GHSA-r6h4-mm7h-8pmqJSONOSV PYSEC-2026-1825JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.7 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | facelessuser | pymdown_extensionscpe:2.3:a:facelessuser:pymdown_extensions:*:*:*:*:*:*:*:* |
< 10.16.1 | 10.16.1 |
| OSV | PyPI | pymdown-extensions | < 10.16.1 | 10.16.1 |
References
- https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8 · Patch, WEB
- https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-r6h4-mm7h-8pmq · Exploit, Patch, Vendor Advisory, WEB
- https://pypi.org/project/pymdown-extensions/10.16.1 · Product, Release Notes, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-68142 · ADVISORY
- https://github.com/facelessuser/pymdown-extensions · PACKAGE
- https://pypi.org/project/pymdown-extensions · PACKAGE
- https://github.com/advisories/GHSA-r6h4-mm7h-8pmq · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 16 Dec 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Dec 2025)