{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23630","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2026-01-14T16:08:37.482Z","datePublished":"2026-01-21T22:51:27.158Z","dateUpdated":"2026-01-22T16:49:01.024Z"},"containers":{"cna":{"title":"Docmost is vulnerable to stored Cross-Site Scripting (XSS) through Mermaid rendering","problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116: Improper Encoding or Escaping of Output","type":"CWE"}]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"references":[{"name":"https://github.com/docmost/docmost/security/advisories/GHSA-r4hj-mc62-jmwj","tags":["x_refsource_CONFIRM"],"url":"https://github.com/docmost/docmost/security/advisories/GHSA-r4hj-mc62-jmwj"},{"name":"https://github.com/docmost/docmost/commit/cb9f27da9a8b4940760e37e5238a1eb91e427daf","tags":["x_refsource_MISC"],"url":"https://github.com/docmost/docmost/commit/cb9f27da9a8b4940760e37e5238a1eb91e427daf"},{"name":"https://github.com/docmost/docmost/releases/tag/v0.24.0","tags":["x_refsource_MISC"],"url":"https://github.com/docmost/docmost/releases/tag/v0.24.0"}],"affected":[{"vendor":"docmost","product":"docmost","versions":[{"version":">= 0.3.0, < 0.24.0","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2026-01-21T22:51:27.158Z"},"descriptions":[{"lang":"en","value":"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":{"advisory":"GHSA-r4hj-mc62-jmwj","discovery":"UNKNOWN"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-22T15:09:16.399808Z","id":"CVE-2026-23630","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-01-22T16:49:01.024Z"}}]}}