CVE-2026-136268
MEDIUM 5.1CVSS 4.0Code block fence breakout in MDEx to_slack/2 allows Slack mention and link injection
Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in leandrocp mdex allows Content Spoofing via code block content passed to MDEx.to_slack/2. An attacker who controls Markdown that an application converts to Slack mrkdwn can inject <!channel>, <!here> and <@user> mentions and links whose visible label differs from their target, with default options.
In lib/mdex/slack_converter.ex, the MDEx.CodeBlock clause of render_node/2 wraps the block's literal in a fixed three-backtick fence and emits it without the escaping applied to every other text node. A block opened with four backticks or tildes whose body contains a line of three backticks therefore closes the Slack code block early, and the rest of the body is parsed as live mrkdwn. Links injected this way also skip the dangerous URL filter in render_url/2.
This issue affects mdex: from 0.13.1 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-150
- Also known as
- EEF-CVE-2026-136268
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-136268JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | MEDIUM 5.1 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/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 5.1 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/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.13.1, < 0.15.0 | 0.15.0 |
| CVE List | https://github.com | leandrocp/mdexcpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:* |
>= 0be090a78dbe587a90814a7481b039d10996863c, < 22a0c7b6614f84648e72699f3e426f20b7f04ba6 | 22a0c7b6614f84648e72699f3e426f20b7f04ba6 |
| OSV | Hex | mdex | >= 0.13.1, < 0.15.0 | 0.15.0 |
References
- https://cna.erlef.org/cves/CVE-2026-136268.html · related, third-party-advisory, WEB
- https://github.com/leandrocp/mdex/commit/0be090a78dbe587a90814a7481b039d10996863c · related, WEB
- https://github.com/leandrocp/mdex/commit/22a0c7b6614f84648e72699f3e426f20b7f04ba6 · patch, FIX
- https://osv.dev/vulnerability/EEF-CVE-2026-136268 · related
- https://hex.pm/packages/mdex · PACKAGE
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)