Skip to content

CVE-2024-38527 Cross-site Scripting in ZenUML

MediumCVSS 5.4 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

ZenUML is JavaScript-based diagramming tool that requires no server, using Markdown-inspired text definitions and a renderer to create and modify sequence diagrams. Markdown-based comments in the ZenUML diagram syntax are susceptible to Cross-site Scripting (XSS). The comment feature allows the user to attach small notes for reference. This feature allows the user to enter in their comment in markdown comment, allowing them to use common markdown features, such as ** for bolded text. However, the markdown text is currently not sanitized before rendering, allowing an attacker to enter a malicious payload for the comment which leads to XSS. This puts existing applications that use ZenUML unsandboxed at risk of arbitrary JavaScript execution when rendering user-controlled diagrams. This vulnerability was patched in version 3.23.25,

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
mermaidjs zenuml-core <= 3.0.0 after 3.0.0 Fixed
zenuml @zenuml/core(npm) < 3.23.25 3.23.25 Fixed
mermaid-js zenuml-core = < 3.23.25 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
zenuml @zenuml/core(npm) < 3.23.25 3.23.25
mermaid-js zenuml-core = < 3.23.25 No fix listed
mermaidjs zenuml-core <= 3.0.0 No fix listed

References