{"id":"CVE-2026-23630","aliases":["CVE-2026-23630"],"related":[],"kind":"vulnerability","state":"published","title":"Docmost is vulnerable to stored Cross-Site Scripting (XSS) through Mermaid rendering","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Docmost es un software de wiki colaborativo y documentación de código abierto. En las versiones 0.3.0 a la 0.23.2, la renderización de bloques de código Mermaid es vulnerable a cross-site scripting (XSS) almacenado. El frontend puede renderizar diagramas Mermaid controlados por el atacante usando mermaid.render(), luego inyectar el SVG/HTML devuelto en el DOM a través de dangerouslySetInnerHTML sin sanitización. Las directivas %%{init}%% de Mermaid por diagrama permiten anular securityLevel y habilitar htmlLabels, permitiendo la ejecución arbitraria de HTML/JS para cualquier visor. Este problema ha sido solucionado en la versión 0.24.0.","source":"nvd"}],"published":"2026-01-21T22:51:27.158Z","modified":"2026-06-17T10:21:51.970Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-116"],"affected":[{"ranges":[{"version":">= 0.3.0, < 0.24.0","status":"affected"}],"vendor":"docmost","product":"docmost","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"0.3.0","fixed":"0.24.0"}],"vendor":"docmost","product":"docmost","cpe":"cpe:2.3:a:docmost:docmost:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/docmost/docmost/security/advisories/GHSA-r4hj-mc62-jmwj","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/docmost/docmost/commit/cb9f27da9a8b4940760e37e5238a1eb91e427daf","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/docmost/docmost/releases/tag/v0.24.0","tags":["product","release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-22T15:09:16.399Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23630","url":"https://www.cve.org/CVERecord?id=CVE-2026-23630","licence":"CVE Terms of Use","modified":"2026-01-22T16:49:01.024Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23630","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23630","licence":"Public domain","modified":"2026-06-17T10:21:51.970Z"}],"updatedAt":"2026-11-25T22:59:13.029Z","epss":{"score":0.0045,"percentile":0.31003,"date":"2026-11-30T12:00:22.000Z"}}