# CVE-2026-23630: Docmost is vulnerable to stored Cross-Site Scripting (XSS) through Mermaid rendering

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 31% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-21T22:51:27.158Z
- Modified: 2026-06-17T10:21:51.970Z
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- docmost docmost: >= 0.3.0, < 0.24.0; from 0.3.0 before 0.24.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/docmost/docmost/security/advisories/GHSA-r4hj-mc62-jmwj> (exploit, vendor-advisory)
- <https://github.com/docmost/docmost/commit/cb9f27da9a8b4940760e37e5238a1eb91e427daf> (patch)
- <https://github.com/docmost/docmost/releases/tag/v0.24.0> (product, release-notes)

## Sources

- CVE List: [CVE-2026-23630](https://www.cve.org/CVERecord?id=CVE-2026-23630), CVE Terms of Use, modified 2026-01-22
- NVD: [CVE-2026-23630](https://nvd.nist.gov/vuln/detail/CVE-2026-23630), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23630 · Whole record: https://cve.day/CVE-2026-23630.json · Rebuilt by cve.day 2026-11-25T22:59:13.029Z
