Code block fence breakout in MDEx injects Slack mentions and links
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Affected is leandrocp mdex from 0.13.1 before 0.15.0. A code block fenced with four backticks or tildes that contains a line of three backticks closes the Slack code block early in MDEx.to_slack/2, so the remaining text is parsed as live mrkdwn (CWE-150). An attacker who controls Markdown that an application converts to Slack mrkdwn can inject channel and user mentions and links whose visible label differs from the target, with default options.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
The fixed version for mdex is 0.15.0, so upgrade mdex to 0.15.0 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA mdex (leandrocp) Fixed in 0.15.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
leandrocp mdex 0.15.0
10 records Highest priority Priority MEDIUM 2 MEDIUM, 8 LOW
Other records, highest priority first
- TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotesPriority MEDIUM 46
- TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustionPriority MEDIUM 46
- TI-2026-101147 Cubic-time nested block quote rendering in MDEx enables denial of servicePriority LOW 28
- Release ·
leandrocp mdex 22a0c7b6614f84648e72699f3e426f20b7f04ba6
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-101147 Cubic-time nested block quote rendering in MDEx enables denial of servicePriority LOW 28
- TI-2026-101153 Slack mention injection via link destinations in mdexPriority LOW 26
Timeline
- 2026-11-30 Threatist record created from CVE-2026-136268
- 2026-11-30 Alias added: GHSA-9376-qwpp-w322
References
More leandrocp vulnerabilities
- TI-2026-39661 Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex CVSS 4.0MEDIUM 6.9
- TI-2026-38511 Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated denial of service CVSS 4.0MEDIUM 6.9
- TI-2026-39662 Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS) CVSS 4.0MEDIUM 5.1
- TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes CVSS 4.0MEDIUM 6.9
- TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion CVSS 4.0MEDIUM 6.9
- TI-2026-38508 Atom-table exhaustion denial-of-service via JSON parse_document in MDEx CVSS 4.0HIGH 8.2
Sources
- CVE-2026-136268 · CVE Program
- CVE-2026-136268 · NVD
- GHSA-9376-qwpp-w322 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences