Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/pymdown-extensions@10.16.1
purl pkg:pypi/pymdown-extensions@10.16.1
Vulnerabilities affecting this package (0)
Vulnerability Summary Fixed by
This package is not known to be affected by vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-q94j-hfzp-jqc8 PyMdown Extensions has a ReDOS bug in its Figure Capture extension The original issue came through PyMdown Extensions' normal issue tracker instead of the typical security flow: https://github.com/facelessuser/pymdown-extensions/issues/2716. Because this came through the normal issue flow, it was handled as a normal issue. In the future, PyMdown Extensions will ensure such issues, even if prematurely made public through the normal issue flow, are redirected through the typical security process. The regular expression pattern in question is as follows: ```py RE_FIG_NUM = re.compile(r'^(\^)?([1-9][0-9]*(?:.[1-9][0-9]*)*)(?= |$)') ``` The POC was provided by @ShangzhiXu ```py import re import time regex_pattern = re.compile(r'^(\^)?([1-9][0-9]*(?:.[1-9][0-9]*)*)(?= |$)') for i in range(50, 500, 50): long_string = '1' * i + 'a' start_time = time.time() match = re.match(regex_pattern, long_string) end_time = time.time() print(f"long_string execution time: {end_time - start_time:.6f} s") ``` The issue with the above pattern is that `.` was used, which accepts any character when we meant to use `\.`. The fix was to update the pattern to: ```py RE_FIG_NUM = re.compile(r'^(\^)?([1-9][0-9]*(?:\.[1-9][0-9]*)*)(?= |$)') ``` Relevant PR with fix: https://github.com/facelessuser/pymdown-extensions/pull/2717 CVE-2025-68142
GHSA-r6h4-mm7h-8pmq

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-02T04:49:13.474826+00:00 GitLab Importer Fixing VCID-q94j-hfzp-jqc8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/pymdown-extensions/CVE-2025-68142.yml 38.6.0