Inefficient Algorithmic Complexity Affecting markdown2 package, versions [0,2.2.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-MARKDOWN2-22392357
  • published10 Nov 2026
  • disclosed28 Oct 2026
  • creditMuhammadyusuf Dilmurodov, ParamTanna

Introduced: 28 Oct 2026

NewCVE-2026-118694  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade markdown2 to version 2.2.1 or higher.

Overview

markdown2 is a fast and complete Python implementation of Markdown.

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the LinkProcessor.parse_inline_anchor_or_image function in lib/markdown2.py. A remote attacker can submit Markdown containing repeated unclosed link or image destinations such as [a]( or ![a](, causing _find_balanced to repeatedly scan the remaining text and consume quadratic CPU time during conversion.

CVSS Base Scores

version 4.0
version 3.1