Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-53428

MEDIUM 6.9EPSS 5%

Unbounded memory allocation in highlight_lines range expansion in mdex

Mitigation

  • Upgrade mdex to 0.12.3 or later.
  • Upgrade mdex to 6ed94d905f97af188323f042698ae841c02293b4 or later.
  • Upgrade mdex_native to 0.2.3 or later.
  • Upgrade mdex_native to 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3 or later.
  • Vendor workaround: Do not enable code-block decorators: leave the github_pre_lang and full_info_string render options unset, or avoid configuring an inline syntax-highlight formatter, so that highlight_lines specifications are never parsed.

Who should check

  • Anyone running leandrocp mdex >= 0.11.0, < 0.12.3
  • Anyone running leandrocp mdex >= a8407611715d1ead35fbcba79c72cef1b7df387b, < 6ed94d905f97af188323f042698ae841c02293b4
  • Anyone running leandrocp mdex_native >= 0.1.0, < 0.2.3
  • Anyone running leandrocp mdex_native >= 956528c5e31746253347029e810a969ab916fd27, < 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3

Vulnerability facts

Affected
leandrocp mdex >= 0.11.0, < 0.12.3; leandrocp mdex >= a8407611715d1ead35fbcba79c72cef1b7df387b, < 6ed94d905f97af188323f042698ae841c02293b4; leandrocp mdex_native >= 0.1.0, < 0.2.3; leandrocp mdex_native >= 956528c5e31746253347029e810a969ab916fd27, < 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3
Fixed in
leandrocp mdex 0.12.3, leandrocp mdex 6ed94d905f97af188323f042698ae841c02293b4, leandrocp mdex_native 0.2.3, leandrocp mdex_native 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: High
EPSS
0.18% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-789
Published
Modified

Description

Memory Allocation with Excessive Size Value vulnerability in leandrocp mdex allows an unauthenticated attacker to cause a denial of service through unbounded memory allocation. comrak_nif::lumis_adapter::LumisAdapter::parse_highlight_lines in native/comrak_nif/src/lumis_adapter.rs eagerly expands a user-controlled inclusive line range from a fenced code block's highlight_lines decorator into a Vec<usize>, pushing one element per integer in the range with no upper bound on the range size. An attacker who can supply Markdown that an application renders with MDEx.to_html/2 (for example a comment, chat message, or wiki page) can embed a code block whose info string is rust highlight_lines="1-100000000", forcing the native adapter to allocate roughly 8 bytes per line in the range. A payload that differs by only a few bytes can therefore allocate hundreds of megabytes, and a sufficiently large range (for example 1-2000000000) exhausts host memory and aborts the BEAM, denying service to every user of the rendering process. The per-line write loop additionally tests membership with a linear scan over the same vector, degrading rendering to a quadratic cost even for ranges that do not immediately exhaust memory. The vulnerable native code originally shipped inside mdex (in native/comrak_nif/src/autumnus_adapter.rs, later renamed to native/comrak_nif/src/lumis_adapter.rs) and was later extracted into the separate mdex_native package (native/mdex_native_nif/src/lumis_adapter.rs). This issue affects mdex: from 0.11.0 before 0.12.3; mdex_native: from 0.1.0 before 0.2.3.

Affected and fixed versions

Package / productAffectedFixedSource
leandrocp mdex>= 0.11.0, < 0.12.3—cvelist
leandrocp mdex>= a8407611715d1ead35fbcba79c72cef1b7df387b, < 6ed94d905f97af188323f042698ae841c02293b4—cvelist
leandrocp mdex_native>= 0.1.0, < 0.2.3—cvelist
leandrocp mdex_native>= 956528c5e31746253347029e810a969ab916fd27, < 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-53428. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53428.md
Affected: leandrocp mdex >= 0.11.0, < 0.12.3; leandrocp mdex >= a8407611715d1ead35fbcba79c72cef1b7df387b, < 6ed94d905f97af188323f042698ae841c02293b4; leandrocp mdex_native >= 0.1.0, < 0.2.3; leandrocp mdex_native >= 956528c5e31746253347029e810a969ab916fd27, < 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3
Fixed in: leandrocp mdex 0.12.3, leandrocp mdex 6ed94d905f97af188323f042698ae841c02293b4, leandrocp mdex_native 0.2.3, leandrocp mdex_native 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3

Steps:
1. Search this machine and project for leandrocp mdex, leandrocp mdex_native: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-53428 being exploited?

There is no confirmed exploitation: CVE-2026-53428 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-53428?

Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-53428?

leandrocp mdex >= 0.11.0, < 0.12.3; leandrocp mdex >= a8407611715d1ead35fbcba79c72cef1b7df387b, < 6ed94d905f97af188323f042698ae841c02293b4; leandrocp mdex_native >= 0.1.0, < 0.2.3; leandrocp mdex_native >= 956528c5e31746253347029e810a969ab916fd27, < 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3.

Is there a fix for CVE-2026-53428?

Yes. Fixed in leandrocp mdex 0.12.3, leandrocp mdex 6ed94d905f97af188323f042698ae841c02293b4, leandrocp mdex_native 0.2.3, leandrocp mdex_native 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3. Upgrade mdex to 0.12.3 or later. Upgrade mdex to 6ed94d905f97af188323f042698ae841c02293b4 or later. Upgrade mdex_native to 0.2.3 or later. Upgrade mdex_native to 798a363b4339f6f7162ec8437c4c9f9b5ae6fbf3 or later. Vendor workaround: Do not enable code-block decorators: leave the github_pre_lang and full_info_string render options unset, or avoid configuring an inline syntax-highlight formatter, so that highlight_lines specifications are never parsed.

How do I check if I'm affected by CVE-2026-53428?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors