CVE-2026-135699
LOW 2.1CVSS 4.0Quadratic regular expression scans in MDEx auto_close text policy allow CPU denial of service
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.
- Published
- 30 Nov 2026
- Last modified
- 30 Nov 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Received
- Weakness
- CWE-1333
- Also known as
- EEF-CVE-2026-135699
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-135699JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | LOW 2.1 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | EEF | CVSS 4.0 | LOW 2.1 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://repo.hex.pm | mdexcpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:* |
>= 0.14.3, < 0.15.0 | 0.15.0 |
| CVE List | https://github.com | leandrocp/mdexcpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:* |
>= 359d46b344042a2feda7c768051d39b9d460b210, < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af | 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af |
| OSV | Hex | mdex | >= 0.14.3, < 0.15.0 | 0.15.0 |
References
- https://cna.erlef.org/cves/CVE-2026-135699.html · related, third-party-advisory, WEB
- https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af · patch, FIX
- https://github.com/leandrocp/mdex/commit/359d46b344042a2feda7c768051d39b9d460b210 · related, WEB
- https://osv.dev/vulnerability/EEF-CVE-2026-135699 · related
- https://hex.pm/packages/mdex · PACKAGE
History
- 30 Nov 2026 19:42 UTC · CVE List: updated (other details)
- 30 Nov 2026 19:41 UTC · NVD: first stored (published 30 Nov 2026)
- 30 Nov 2026 19:01 UTC · OSV: first stored (published 30 Nov 2026)
- 30 Nov 2026 18:49 UTC · CVE List: first stored (published 30 Nov 2026)