CVE-2026-40927
Cross-Site Scripting in Docmost Comments Allows Code Execution
Publication date: 2026-04-21
Last updated on: 2026-04-23
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| docmost | docmost | to 0.80.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in Docmost, an open-source collaborative wiki and documentation software. Prior to version 0.80.0, when a user leaves a comment on a page, it is possible to include a JavaScript URI as a link. If another user clicks on this link, the JavaScript code executes, which can lead to security issues.
How can this vulnerability impact me? :
The vulnerability allows execution of arbitrary JavaScript code when a user clicks on a malicious link in a comment. This can lead to cross-site scripting (XSS) attacks, potentially compromising user data, session tokens, or causing unauthorized actions within the application.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, upgrade Docmost to version 0.80.0 or later, where the issue has been fixed.