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 parse_link_href in src/mistune/helpers.py, which performs an unbounded parenthesis-balancing scan to the end of the document for each unmatched opening parenthesis encountered through an empty [] link label. The empty label bypasses the no_close_bracket_before high-water-mark guard in src/mistune/inline_parser.py, and no_link_before advances only past the two-character label rather than the href region, so successive []( candidates each trigger an O(N) scan of the remaining document. An attacker can submit a document consisting of repeated []( units to produce O(N²) CPU work, pinning a worker at 100% utilization for tens of seconds on inputs of tens of kilobytes.
import mistune
md = mistune.create_markdown() # default HTML renderer, no plugins
md("[](" * 16000) # ~48KB input stalls a worker ~50s