Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-q94j-hfzp-jqc8
Summary
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
Aliases
0
alias CVE-2025-68142
1
alias GHSA-r6h4-mm7h-8pmq
Fixed_packages
0
url pkg:pypi/pymdown-extensions@10.16.1
purl pkg:pypi/pymdown-extensions@10.16.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/pymdown-extensions@10.16.1
Affected_packages
References
0
reference_url https://github.com/facelessuser/pymdown-extensions
reference_id
reference_type
scores
url https://github.com/facelessuser/pymdown-extensions
1
reference_url https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8
reference_id
reference_type
scores
url https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8
2
reference_url https://pypi.org/project/pymdown-extensions/10.16.1
reference_id
reference_type
scores
url https://pypi.org/project/pymdown-extensions/10.16.1
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2025-68142
reference_id CVE-2025-68142
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2025-68142
4
reference_url https://github.com/advisories/GHSA-r6h4-mm7h-8pmq
reference_id GHSA-r6h4-mm7h-8pmq
reference_type
scores
url https://github.com/advisories/GHSA-r6h4-mm7h-8pmq
5
reference_url https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-r6h4-mm7h-8pmq
reference_id GHSA-r6h4-mm7h-8pmq
reference_type
scores
url https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-r6h4-mm7h-8pmq
Weaknesses
0
cwe_id 1333
name Inefficient Regular Expression Complexity
description The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.
1
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
2
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
Exploits
Severity_range_scorenull
Exploitabilitynull
Weighted_severitynull
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-q94j-hfzp-jqc8