{"id":"CVE-2024-38527","published":"2024-06-26T19:33:46Z","modified":"2024-08-02T04:12:25Z","title":"Cross-site Scripting in ZenUML","vendor":"mermaid-js","product":"zenuml-core","tier":"tail","description":{"text":"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,","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00381,"percentile":0.32995,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mermaid-js/zenuml-core/security/advisories/GHSA-q6xv-jm4v-349h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mermaid-js/zenuml-core/commit/ad7545b33f5f27466cbf357beb65969ca1953e3c","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":6.6},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"mermaid-js","affectedVersions":[{"vendor":"mermaid-js","product":"zenuml-core","versions":["< 3.23.25"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-27T19:02:31.612648Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@zenuml/core","vulnerableRanges":["<3.23.25"],"patched":["3.23.25"],"from":["GHSA-q6xv-jm4v-349h"],"provenance":"source"}],"summary":{"text":"Cross-site scripting exists in the Markdown-based comment feature of the ZenUML diagram syntax in zenuml-core, the JavaScript diagramming library from mermaid-js, because comment text is rendered without sanitisation. An attacker who can supply a crafted diagram or comment, with no authentication or special privileges required, could get arbitrary JavaScript to run when a user views the rendered diagram, which is a particular risk for applications that embed ZenUML without sandboxing it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:34Z"},"euvd":{"id":"EUVD-2024-2136","exploited":false,"provenance":"source"}}