# CVE-2026-135775: Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLs

- Severity: Medium 5.9 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-30T18:45:07.891Z
- Modified: 2026-11-30T19:17:50.680Z
- Also known as: EEF-CVE-2026-135775
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## Description

Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.

When auto-close is active, MDEx.FragmentParser.autolink_size/2 in lib/mdex/fragment_parser.ex trims trailing ) from a bare URL one byte at a time and recounts every ( and ) in the remaining URL at each step, so a URL followed by N parentheses costs O(N²) work. Around 20 KB of input pins a scheduler for tens of seconds, and MDEx.stream/2 repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.

This issue affects mdex: from 0.14.2 before 0.15.0.

(As written by CVE List.)

## Affected

- mdex: from 0.14.2 before 0.15.0
- leandrocp/mdex: from bea359152bc1f63f3256ee86ca207151b815940d before 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
- mdex (Hex): from 0.14.2 before 0.15.0
- https://github.com/leandrocp/mdex: from bea359152bc1f63f3256ee86ca207151b815940d before 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af

## Every score

- EEF: CVSS:4.0 5.9 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://cna.erlef.org/cves/CVE-2026-135775.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-135775> (related)
- <https://github.com/leandrocp/mdex/commit/bea359152bc1f63f3256ee86ca207151b815940d> (related, web)
- <https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af> (fix, patch)
- <https://hex.pm/packages/mdex> (package)

## Sources

- CVE List: [CVE-2026-135775](https://www.cve.org/CVERecord?id=CVE-2026-135775), CVE Terms of Use, modified 2026-11-30
- Erlang Ecosystem Foundation: [EEF-CVE-2026-135775](https://osv.dev/vulnerability/EEF-CVE-2026-135775), CC-BY-4.0, modified 2026-11-30
- NVD: [CVE-2026-135775](https://nvd.nist.gov/vuln/detail/CVE-2026-135775), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-135775 · Whole record: https://cve.day/CVE-2026-135775.json · Rebuilt by cve.day 2026-11-30T19:32:21.045Z
