# CVE-2025-68142: PyMdown Extensions has ReDOS bug in Figure Capture extension

- Severity: Low 2.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-16T18:06:37.756Z
- Modified: 2026-07-07T17:57:13.861Z
- Also known as: GHSA-r6h4-mm7h-8pmq, PYSEC-2026-1825
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- facelessuser pymdown-extensions: < 10.16.1
- pymdown-extensions (PyPI): before 10.16.1
- facelessuser pymdown_extensions: before 10.16.1

## Every score

- GitHub_M: CVSS:4.0 2.7 Low `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`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: 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`

## References

- <https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-r6h4-mm7h-8pmq> (exploit, patch, vendor-advisory, web)
- <https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8> (patch, 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)

## Sources

- CVE List: [CVE-2025-68142](https://www.cve.org/CVERecord?id=CVE-2025-68142), CVE Terms of Use, modified 2025-12-17
- GitHub Advisory Database: [GHSA-r6h4-mm7h-8pmq](https://github.com/advisories/GHSA-r6h4-mm7h-8pmq), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-68142](https://nvd.nist.gov/vuln/detail/CVE-2025-68142), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1825](https://osv.dev/vulnerability/PYSEC-2026-1825), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-68142 · Whole record: https://cve.day/CVE-2025-68142.json · Rebuilt by cve.day 2026-11-25T22:59:09.550Z
