CVE-2026-40922: Lute Unsanitized Markdown Parser

The lute markdown engine is instantiated but `SetSanitize(true)` is not explicitly enabled. When rendering untrusted markdown, this bypasses restrictions on raw HTML tags (e.g. IFRAMEs, scripts), which can lead to Cross-Site Scripting (XSS) or arbitrary code execution.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-40922-lute-unsanitized-markdown-parser --engine opengrep

Description

The lute markdown engine is instantiated but `SetSanitize(true)` is not explicitly enabled. When rendering untrusted markdown, this bypasses restrictions on raw HTML tags (e.g. IFRAMEs, scripts), which can lead to Cross-Site Scripting (XSS) or arbitrary code execution.