CVE-2026-135699 — leandrocp mdex
One of 10 leandrocp mdex vulnerabilities published together by NVD: our article covers all of them.
AIVulnerabilitiesSummary
Inefficient Regular Expression Complexity vulnerability in leandrocp mdex allows an attacker to exhaust CPU via crafted unterminated link or image labels. When an application completes partial Markdown with the non-default auto_close: [links: :text] or auto_close: [images: :text] policy, MDEx.FragmentParser.text_label/1 in lib/mdex/fragment_parser.ex escapes the pending label with two regular expressions, \A[^\n]+|[^\n]+\z and ~{3,}\z, that are anchored at one end only. The engine retries the unanchored alternative from every offset, so the cost grows with the square of a label line or trailing tilde run. An attacker who supplies the Markdown, such as user content or streamed LLM output, can make a single render of about 60 KB take tens of seconds of CPU. The default auto_close: true policy is not affected. This issue affects mdex: from 0.14.3 before 0.15.0.
Severity breakdown
Low · 2.1
An attacker without an account can exploit this with local access, without any user action, but only under specific conditions.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- low on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-1333: Inefficient Regular Expression Complexity
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| leandrocp mdex | ≥ 0.14.3, < 0.15.0 | 0.15.0 |
References by type
Patches and fixed releases
- github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9…
- github.com/leandrocp/mdex/commit/359d46b344042a2feda7c768051d39b9d460b2…
Other references
Affected
- leandrocp mdex
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-135699?
Inefficient Regular Expression Complexity vulnerability in leandrocp mdex allows an attacker to exhaust CPU via crafted unterminated link or image labels. Weakness type: Inefficient Regular Expression Complexity (CWE-1333).
How severe is CVE-2026-135699?
CVE-2026-135699 has a CVSS 4.0 base score of 2.1 (low), from the CNA. An attacker without an account can exploit this with local access, without any user action, but only under specific conditions.
Is CVE-2026-135699 being exploited?
Not as far as is known: CVE-2026-135699 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-135699?
leandrocp mdex ≥ 0.14.3, < 0.15.0 (fixed in 0.15.0).
How do I fix CVE-2026-135699?
Update to a fixed release: leandrocp mdex 0.15.0.