Slack mention injection via link destinations in mdex
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
The mdex package by leandrocp from 0.13.1 before 0.15.0 writes link, image and wikilink destinations into Slack links in MDEx.to_slack/2 without rejecting Slack control prefixes. This is improper neutralization of control sequences (CWE-150). An attacker who controls Markdown that an application forwards to Slack can make the posting bot notify a whole channel or ping arbitrary users and groups.
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 Slack mention and broadcast injection via link, image, and wikilink destinations. MDEx.to_slack/2 renders these nodes as Slack <url|label> links and writes the destination between the angle brackets without rejecting Slack control prefixes. A destination such as !channel, !here, @U012AB3CD or !subteam^ID therefore comes out as <!channel|label> or <@U012AB3CD|label>, which Slack treats as a broadcast or a user or group mention. The same sequences in plain text are escaped. Anyone whose Markdown an application forwards to Slack through MDEx.to_slack/2 (user content, tickets, LLM output) can make the posting bot notify a whole channel or ping arbitrary users and groups. In lib/mdex/slack_converter.ex, render_url/2 only drops URLs that the dangerous-URL check flags, and escape_link_part/1 only escapes &, <, > and |. 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
Upgrade mdex to version 0.15.0, the first fixed version.
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-101154 Code block fence breakout in MDEx injects Slack mentions and linksPriority LOW 38
- Release ·
leandrocp mdex 22a0c7b6614f84648e72699f3e426f20b7f04ba6
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and linksPriority LOW 38
- TI-2026-101147 Cubic-time nested block quote rendering in MDEx enables denial of servicePriority LOW 28
Timeline
- 2026-11-30 Threatist record created from CVE-2026-136130
- 2026-11-30 Alias added: GHSA-2hxx-vmqq-8qqg
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-101154 Code block fence breakout in MDEx injects Slack mentions and links CVSS 4.0MEDIUM 5.1
Sources
- CVE-2026-136130 · CVE Program
- CVE-2026-136130 · NVD
- GHSA-2hxx-vmqq-8qqg · 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