CVE-2025-68917
📋 TL;DR
CVE-2025-68917 is a cross-site scripting (XSS) vulnerability in ONLYOFFICE Docs DocumentServer that allows attackers to inject malicious scripts into comment textareas. This affects users of ONLYOFFICE Docs DocumentServer who edit or view documents with comments. The vulnerability could lead to session hijacking, data theft, or unauthorized actions.
💻 Affected Systems
- ONLYOFFICE Docs DocumentServer
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal session cookies, perform actions as authenticated users, or redirect users to malicious sites, potentially leading to full account compromise.
Likely Case
Attackers inject malicious scripts that steal session tokens or user data when victims view or edit documents with crafted comments.
If Mitigated
With proper input validation and output encoding, the attack would fail to execute malicious scripts.
🎯 Exploit Status
Exploitation requires user interaction (viewing/editing malicious comments).
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 9.2.1
Vendor Advisory: https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md#921
Restart Required: Yes
Instructions:
1. Backup current configuration. 2. Update ONLYOFFICE Docs DocumentServer to version 9.2.1 or later. 3. Restart the DocumentServer service. 4. Verify the update was successful.
🔧 Temporary Workarounds
Disable comment functionality
allTemporarily disable comment editing features in DocumentServer configuration
Edit DocumentServer config to disable comment features
Implement WAF rules
allConfigure web application firewall to block XSS payloads in comment parameters
Add WAF rules to filter script tags and JavaScript in comment inputs
🧯 If You Can't Patch
- Implement strict Content Security Policy (CSP) headers to prevent script execution
- Enable input validation and output encoding for all user-controlled comment fields
🔍 How to Verify
Check if Vulnerable:
Check DocumentServer version; if below 9.2.1, system is vulnerable
Check Version:
Check DocumentServer version in admin interface or configuration files
Verify Fix Applied:
Confirm version is 9.2.1 or later and test comment functionality with XSS payloads
📡 Detection & Monitoring
Log Indicators:
- Unusual comment submissions with script tags or JavaScript code
- Multiple failed comment submissions with special characters
Network Indicators:
- HTTP requests with script payloads in comment parameters
- Unusual traffic patterns to comment endpoints
SIEM Query:
search source="DocumentServer" AND (event="comment_submit" AND (message="*<script>*" OR message="*javascript:*"))