Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl Markdown fed to app
-
DeliveryCraft 4-backtick block with inner ``` line
-
ExploitApp calls MDEx.to_slack/2 with defaults
-
ExecutionFence closes early, body renders as mrkdwn
-
ImpactInject spoofed @channel mentions and deceptive links
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
|
| Exploitation Conditions | Exploitation requires that the application calls MDEx.to_slack/2 (mdex 0.13.1 through before 0.15.0) with default options on Markdown the attacker can control, and that the resulting mrkdwn is delivered into a Slack context where mentions and links are rendered. The concrete trigger is a code block opened with four backticks or tildes whose body contains a line of exactly three backticks, which prematurely closes the Slack code fence so the remaining content is parsed as live mrkdwn and also bypasses the dangerous-URL filter in render_url/2. Limiting factors: only applications that actually use the to_slack/2 Slack-conversion path are affected, impact is confined to content spoofing / misleading Slack mentions and links (no code execution, no data disclosure), and a caller who pre-escapes or restricts Markdown input reduces exposure. |
| Impact | The input CVSS 4.0 vector (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, score 5.1, medium) frames this as an integrity-only issue with no confidentiality or availability impact - consistent with the CWE-150 content-spoofing classification and the description, which describes injection of misleading Slack mentions (<!channel>, <!here>, <@user>) and deceptive links, not code execution. The vuln.today priority is 'this_month', not act_now/emergency, and there is no CISA KEV listing and no EPSS score in the supplied data, so no signal points to active or widespread exploitation; no public exploit code is identified at time of analysis (the four references are the ERLEF CNA advisory, two fix commits, and the OSV record - none is a working PoC). One inconsistency worth flagging: the CNA vector uses AV:L (local), yet the mechanism is attacker-controlled Markdown that an application converts and typically posts to a remote Slack workspace, which in most real deployments is a network-reachable data-injection path rather than a local one - verify the intended attack surface with the vendor. Net assessment: a genuine but modest, integrity-only spoofing/social-engineering issue in a niche library, not a high-urgency priority; patch on a normal maintenance cadence. |
| Exploit ScenarioDerived | An Elixir application accepts user-supplied Markdown (for example a comment or ticket body) and forwards it to a Slack channel via MDEx.to_slack/2 with default options. The attacker submits a code block opened with four backticks (or tildes) whose body contains a line of three backticks; this closes the Slack code fence early, so the remainder of the body renders as live mrkdwn, injecting <!channel>/<!here> notifications and links whose visible label differs from their real target. No public exploit code is identified; the flaw is documented only in the vendor advisory and fix commits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
The MDEx Elixir library's Slack conversion path (MDEx.to_slack/2, present from 0.13.1 and fixed in 0.15.0) renders code-block literals into a fixed three-backtick fence without the escaping it applies to every other text node, so Markdown fences opened with four backticks or tildes can terminate the Slack code block early and let the remaining body render as live mrkdwn. An attacker who controls Markdown that an application passes to to_slack/2 with default options can therefore inject <!channel>, <!here> and <@user> mentions and links whose visible label differs from their target, and injected links also skip the dangerous-URL filter in render_url/2. Impact is integrity-only content spoofing in the resulting Slack message (no code execution, confidentiality or availability impact); no public exploit code or active exploitation was identified at time of analysis, and the issue only affects applications that actually use the to_slack/2 Slack-conversion path.
RemediationAI
Upgrade the mdex dependency to 0.15.0, the first release outside the affected range (from 0.13.1 before 0.15.0), and re-lock the Hex dependency; the upstream changes are visible in commits 0be090a78dbe587a90814a7481b039d10996863c and 22a0c7b6614f84648e72699f3e426f20b7f04ba6, with advisory details at https://cna.erlef.org/cves/CVE-2026-136268.html and https://osv.dev/vulnerability/EEF-CVE-2026-136268. If an immediate upgrade is not possible, stop passing attacker-controlled Markdown to MDEx.to_slack/2 with default options: either keep untrusted content on the HTML/document rendering path, or supply a :custom_converters map with an MDEx.CodeBlock converter that escapes backticks and Slack control characters in the block literal before output - the trade-off is that the custom converter replaces the default code-block rendering for that node type and must be maintained alongside upstream changes. Pre-sanitizing input Markdown by rejecting fences opened with four or more backticks or tildes whose bodies contain three-backtick lines also reduces exposure, but is a parsing-sensitive workaround rather than a complete fix; the underlying escaping defect remains until 0.15.0 is installed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MDEx is an Elixir Markdown library (leandrocp/mdex, distributed via Hex) that parses CommonMark/GFM through a Rust comrak backend and exposes the result as an MDEx.Document AST, which converters then walk node by node. This is a CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences) defect in the MDEx.SlackConverter module: Slack's mrkdwn dialect has its own control sequences (fenced code blocks delimited by three backticks, link syntax <url|label>, and mention tokens such as <!channel>, <!here> and <@user>). The render_node/2 clause for MDEx.CodeBlock wraps the block's literal in a hardcoded three-backtick fence and emits it verbatim, bypassing the escaping routine applied to all other text nodes. Because the original fence may have been opened with four backticks or tildes, a body line containing exactly three backticks closes the Slack fence prematurely and everything after it is parsed as live mrkdwn; links introduced this way also evade the dangerous-URL filter implemented in render_url/2. The flaw lives entirely in the Markdown-to-mrkdwn translation layer rather than in the parser, so the CWE-150 root cause is output-context escaping rather than a memory-safety or execution primitive.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker-controlled Markdown injects spoofed content into a separate Slack component (S:C), with integrity-only low impact; I use AV:N because the input typically arrives remotely, diverging from the CNA's AV:L.
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-139642
GHSA-9376-qwpp-w322
NVD
CVE.org
EPSS
Exploit-DB