Intel

AIKIDO-2026-409601

mdex is vulnerable to Unbounded memory allocation

CVE-2026-53428Published Jul 2, 2026
July 2, 2026

69

CVE Score

Medium

Unbounded memory allocation

Are you affected? Scan for Free

TL;DR

mdex allows unbounded memory allocation when rendering Markdown that contains a fenced code block with an oversized highlight_lines range in its info string. The native adapter (LumisAdapter::parse_highlight_lines in lumis_adapter.rs) eagerly expands the attacker-controlled inclusive line range into a Vec<usize> with no upper bound, allocating roughly 8 bytes per line.

How do I fix this?

Upgrade the mdex library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.11.0 - 0.12.2

Fixed in 0.12.3

Background info

mdex is vulnerable to Unbounded memory allocation in versions 0.11.0 - 0.12.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea