mdex is vulnerable to Unbounded memory allocation
69
CVE Score
Medium
Unbounded memory allocation
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.
Upgrade the mdex library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.11.0 - 0.12.2
Fixed in 0.12.3mdex is vulnerable to Unbounded memory allocation in versions 0.11.0 - 0.12.2.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.