# CVE-2026-136268: Code block fence breakout in MDEx to_slack/2 allows Slack mention and link injection

- Severity: Medium 5.1 (CVSS:4.0, scored by EEF) `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`
- 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.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-11-30T18:43:53.309Z
- Modified: 2026-11-30T19:17:52.457Z
- Also known as: EEF-CVE-2026-136268
- Weaknesses: CWE-150
- Assigned by: EEF

## Description

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.

(As written by CVE List.)

## Affected

- mdex: from 0.13.1 before 0.15.0
- leandrocp/mdex: from 0be090a78dbe587a90814a7481b039d10996863c before 22a0c7b6614f84648e72699f3e426f20b7f04ba6
- mdex (Hex): from 0.13.1 before 0.15.0
- https://github.com/leandrocp/mdex: from 0be090a78dbe587a90814a7481b039d10996863c before 22a0c7b6614f84648e72699f3e426f20b7f04ba6

## Every score

- EEF: CVSS:4.0 5.1 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

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

## Sources

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

---

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