CVE-2024-22420: Unsanitized Markdown Render Innerhtml

Direct assignment of un-sanitized parsed markdown or HTML to innerHTML can lead to DOM-based Cross-Site Scripting (XSS). Use a sanitizer such as DOMPurify or a secure rendering method.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2024-22420-unsanitized-markdown-render-innerhtml --engine opengrep

Description

Direct assignment of un-sanitized parsed markdown or HTML to innerHTML can lead to DOM-based Cross-Site Scripting (XSS). Use a sanitizer such as DOMPurify or a secure rendering method.