CVE-2026-24045 Docmost Affected by Stored XSS in Public Share Page
Attackers can execute arbitrary JavaScript in users' browsers via stored XSS in Docmost public share pages, potentially leading to account takeover.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-24045?
CVE-2026-24045 is a high-severity cross-site scripting vulnerability in docmost, published on 10 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Docmost is open-source collaborative wiki and documentation software. From 0.20.0 and before 0.25.0, the public share page functionality in Docmost does not properly HTML-escape page titles before inserting them into meta tags and the title tag. This allows Stored Cross-Site Scripting (XSS) attacks, where an attacker can execute arbitrary JavaScript in the context of any user who opens a shared page link. This vulnerability is fixed in 0.25.0.
Weakness: CWE-79
Which versions are affected by CVE-2026-24045?
It affects 1 product.
Products include Docmost Docmost.
How do I fix CVE-2026-24045?
No fix has been published for CVE-2026-24045 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-24045 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24045 exists.
Other vulnerabilities in docmost
- CVE-2026-22249 Docmost affected by an Arbitrary File Write via Zip Import Feature (ZipSlip)
- CVE-2026-23630 Docmost is vulnerable to stored Cross-Site Scripting (XSS) through Mermaid rendering
- CVE-2025-55574 Cross-site scripting in n/a
- CVE-2026-40927 Docmost: XSS in Comments with JavaScript URI
- CVE-2026-34212 Docmost page content has stored XSS via unsanitized attachment URLs
Sources
Also known as GHSA-h7fp-4f37-29wq.