{"id":"CVE-2025-68142","published":"2025-12-16T18:06:37Z","modified":"2025-12-17T18:51:08Z","title":"PyMdown Extensions has ReDOS bug in Figure Capture extension","vendor":"facelessuser","product":"pymdown-extensions","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00519,"percentile":0.44995,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-r6h4-mm7h-8pmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8","tags":["x_refsource_MISC"]},{"url":"https://pypi.org/project/pymdown-extensions/10.16.1","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":9.0},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"facelessuser","affectedVersions":[{"vendor":"facelessuser","product":"pymdown-extensions","versions":["< 10.16.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-17T14:52:35.207716Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymdown-extensions","vulnerableRanges":["<10.16.1"],"patched":["10.16.1"],"from":["GHSA-r6h4-mm7h-8pmq","PYSEC-2026-1825"],"provenance":"source"}],"summary":{"text":"PyMdown Extensions, a set of extensions for the Python-Markdown project, contains a regular expression denial-of-service flaw in its figure caption extension (pymdownx.blocks.caption). An attacker who can supply crafted Markdown content to a system that processes it with this extension enabled, over the network and without authentication or user interaction, can cause long hangs in processing, provided no timeouts or input-size safeguards are in place.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:31Z"},"euvd":{"id":"EUVD-2025-203840","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-facelessuser-pymdown-extensions-cve-2023-32309","parents":[{"from":"CVE-2023-32309","to":"CVE-2025-68142","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/b7bb4878d6017c03c8dc97c42d8d3bb6ee81db9d","https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8"],"basis":"shared function","functions":["parse_version"]}]}],"children":[{"from":"CVE-2025-68142","to":"CVE-2026-46338","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pymdown-extensions","fromFixed":"10.16.1","toFixed":"10.21.3","daysApart":212},{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8","https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c"],"basis":"shared function","functions":["parse_version"]}]},{"from":"CVE-2025-68142","to":"CVE-2026-67422","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8","https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b"],"basis":"shared function","functions":["parse_version"]}]}],"packageHistory":[{"cve":"CVE-2023-32309","published":"2023-05-15","fixed":"10.0","kev":false},{"cve":"CVE-2025-68142","published":"2025-12-16","fixed":"10.16.1","kev":false},{"cve":"CVE-2026-46338","published":"2026-07-16","fixed":"10.21.3","kev":false},{"cve":"CVE-2026-61632","published":"2026-08-06","fixed":"11.0.0","kev":false},{"cve":"CVE-2026-67422","published":"2026-08-06","fixed":"11.0.1","kev":false}],"package":"PyPI:pymdown-extensions"}}