Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsUpgrade mistune to version 3.3.4 or higher.
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via precedence_scan in src/mistune/inline_parser.py during inline image parsing. The two linearization guards, no_link_before high-water mark (line 141) and _label_contains_link short-circuit (line 171), are both gated behind not is_image, so they are skipped entirely for ![ openers. Each outer image opener therefore calls sc.search over the full remaining image body, producing O(N²) CPU work for an input of the form "![" * N + "x" + "]" * N. Because the failing scans never produce an image token, max_image_depth is never decremented and provides no protection. An unauthenticated attacker can submit such a payload to any endpoint that renders untrusted Markdown, pinning a worker at 100% CPU utilization.
import mistune
md = mistune.create_markdown() # default, no plugins
md("![" * 16000 + "x" + "]" * 16000)
Note: The PoC uses the default mistune.create_markdown() renderer with no plugins and no stated operating system or runtime version.