Use-after-free in cmark-gfm - #VU168055
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose uninitialized memory and alter the generated HTML output.
The vulnerability exists due to a read-only use-after-free in the inline footnote parser when it frees a memory chunk that other nodes still reference. A remote attacker can supply crafted Markdown to a local cmark-gfm process with footnote parsing enabled to expose memory contents in the generated HTML.