Security mailing lists by PureSourceCode

CVE-2026-134915

MEDIUM 6.9CVSS 4.0

Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion via unmatched closing tags

Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to MDEx.stream/2 to exhaust CPU via unmatched HTML closing tags.

MDEx.stream/2 tracks open HTML tags with MDEx.FragmentParser.continue_html_context/2 in lib/mdex/fragment_parser.ex. Every non-void opening tag is pushed onto an unbounded list, and close_html_tag/2 scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N²), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the auto_close option and the render unsafe setting. MDEx.to_html/1 and the other non-streaming entry points are not affected.

This issue affects mdex: from 0.14.0 before 0.15.0.

Published
30 Nov 2026
Last modified
3 Dec 2026
Assigned by
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
NVD status
Received
Weakness
CWE-407
Also known as
EEF-CVE-2026-134915
Sources
NVDJSONCVE ListJSONOSV EEF-CVE-2026-134915JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) CVSS 4.0 MEDIUM 6.9 CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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 MEDIUM 6.9 CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://repo.hex.pm mdex
cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
>= 0.14.0, < 0.15.0 0.15.0
CVE List https://github.com leandrocp/mdex
cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
>= a88793cb0fc5caf75bf878b92c64d36817824765, < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
OSV Hex mdex >= 0.14.0, < 0.15.0 0.15.0

References

History

  • 3 Dec 2026 19:56 UTC · NVD: updated (other details)
  • 3 Dec 2026 18:56 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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.