Skip to main content

MDEx EUVDEUVD-2026-139642

| CVE-2026-136268 MEDIUM
Improper Neutralization of Escape, Meta, or Control Sequences (CWE-150)
2026-11-30 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-9376-qwpp-w322
5.1
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control Markdown fed to app
  2. Delivery
    Craft 4-backtick block with inner ``` line
  3. Exploit
    App calls MDEx.to_slack/2 with defaults
  4. Execution
    Fence closes early, body renders as mrkdwn
  5. Impact
    Inject 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mdex 0.13.1 <0.15.0
mdex 0be090a78dbe587a90814a7481b039d10996863c <22a0c7b6614f84648e72699f3e426f20b7f04ba6

Affected Packages

euvd mdex fix: 0.15.0

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

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 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
vuln.today AI 5.8 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 30, 2026 - 20:05 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche Elixir Markdown library; Slack-conversion feature only recently added
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy