{"id":"CVE-2026-23630","published":"2026-01-21T22:51:27Z","modified":"2026-01-22T16:49:01Z","title":"Docmost is vulnerable to stored Cross-Site Scripting (XSS) through Mermaid rendering","vendor":"docmost","product":"docmost","tier":"tail","description":{"text":"Docmost is open-source collaborative wiki and documentation software. In versions 0.3.0 through 0.23.2, Mermaid code block rendering is vulnerable to stored Cross-Site Scripting (XSS). The frontend can render attacker-controlled Mermaid diagrams using mermaid.render(), then inject the returned SVG/HTML into the DOM via dangerouslySetInnerHTML without sanitization. Mermaid per-diagram %%{init}%% directives allow overriding securityLevel and enabling htmlLabels, permitting arbitrary HTML/JS execution for any viewer. This issue has been fixed in version 0.24.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00292,"percentile":0.22337,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/docmost/docmost/security/advisories/GHSA-r4hj-mc62-jmwj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/docmost/docmost/commit/cb9f27da9a8b4940760e37e5238a1eb91e427daf","tags":["x_refsource_MISC"]},{"url":"https://github.com/docmost/docmost/releases/tag/v0.24.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":4.47},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"docmost","affectedVersions":[{"vendor":"docmost","product":"docmost","versions":[">= 0.3.0, < 0.24.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-22T15:09:16.399808Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-4211","exploited":false,"provenance":"source"}}