Skip to main content

ONLYOFFICE Docs CVE-2025-68917

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-12-24 cve@mitre.org
6.4
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privileged document/comment access
  2. Delivery
    Inject script payload into comment-edit textarea
  3. Exploit
    Victim opens document and payload renders
  4. Execution
    Script executes in victim browser session
  5. Impact
    Hijack session or act as victim in DocumentServer

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated account with permission to create or edit comments on a document within ONLYOFFICE Docs/DocumentServer (PR:L) - specifically the ability to submit content into the comment-editing form textarea. Realistic exploitation also depends on a second user subsequently opening the document and rendering the malicious comment, so despite the stated UI:N the attack is effectively gated by victim interaction. It is limited to deployments before version 9.2.1 and to environments where untrusted or lower-trust users share document/comment access with higher-value targets; a purely single-user or fully-trusted-collaborator deployment materially reduces real risk.

Impact

This is a moderate-severity stored/reflected XSS (CWE-79) in the comment-editing textarea of ONLYOFFICE Docs/DocumentServer, rated 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N). No EPSS score, CISA KEV listing, or public POC is present in the supplied data, so this is NOT a confirmed active-exploitation priority - it reads as a routine web-app XSS fix shipped in release 9.2.1. CONFLICT TO VERIFY: the provided vector states UI:N (no user interaction), but an XSS in a comment-editing form realistically requires a victim to open/render the attacker's comment, which normally implies UI:R - the UI:N and S:C combination appears to overstate the attack by treating it as interaction-free; verify with vendor. The PR:L metric correctly indicates an attacker needs at least a low-privileged account (ability to create/edit a document comment), which limits this to users who can already collaborate on a document rather than anonymous internet attackers. Net: genuine bug worth patching to current release, but low real-world urgency absent any exploitation signal.

Exploit ScenarioDerived

An authenticated collaborator with comment access to a shared document injects a malicious script payload into the comment-editing textarea; when another user (potentially a higher-privileged reviewer) opens the document and the comment renders, the script executes in their browser session within the DocumentServer application context. No public exploit code was identified in the provided data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 07, 2026

Stored cross-site scripting in ONLYOFFICE Docs (DocumentServer) before 9.2.1 lets an authenticated user who can create or edit comments inject markup through the comment-editing form's textarea, which then executes in the browser of any other user who opens and renders the affected document. The issue is rated 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N); the scope change reflects that the injected script escapes the vulnerable comment component into the surrounding browser and document session, with low confidentiality and integrity impact. No public exploit code or confirmed in-the-wild exploitation was identified at time of analysis, and real-world risk is concentrated in shared or multi-tenant deployments where lower-trust collaborators can reach higher-value accounts; a single-user or fully-trusted-collaborator deployment materially reduces exposure.

RemediationAI

Upgrade ONLYOFFICE Docs/DocumentServer to 9.2.1 or later; the vendor changelog entry for 9.2.1 (https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md#921) is the authoritative reference supplied for this fix, and no separate CVE-specific advisory or backport was provided. If immediate upgrade is not possible, the highest-value compensating control is to restrict who can create or edit comments: remove comment/annotation privileges from lower-trust collaborators and constrain document sharing groups so untrusted users cannot place content into documents that higher-value accounts will open, accepting that this degrades collaborative commenting workflows. A restrictive Content-Security-Policy on the DocumentServer front-end can blunt script execution and limit exfiltration, but the editor's legitimate use of inline scripts and dynamic resources frequently forces permissive directives, so CSP should be treated as defense in depth rather than a fix. Deploying ONLYOFFICE behind an authenticating reverse proxy, isolating instances per trust boundary, and shortening editor session/token lifetimes reduce the value of any successfully injected script; none of these eliminate the underlying unsanitized-textarea flaw, so patching to 9.2.1 remains the primary action.

Affected ProductsAI

ONLYOFFICE Docs and its DocumentServer backend are affected in all versions prior to 9.2.1, as stated in the CVE description; the only reference provided is the vendor changelog entry for release 9.2.1 (https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md#921), which is where the fix is documented. No CPE entries were supplied with this record, so no formal CPE 2.3 identifier can be cited; the practical affected set is any self-hosted or cloud ONLYOFFICE Docs/DocumentServer instance running a build older than 9.2.1, particularly those where documents and comments are shared between users of differing trust levels. Deployments limited to a single user or a closed, fully-trusted collaborator group are within the affected version range but have a substantially reduced realistic exposure.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a CWE-79 improper-neutralization issue (cross-site scripting) in ONLYOFFICE Docs / DocumentServer, the document-editing backend that serves the web-based editor and its collaborative document model. User-supplied content submitted through the textarea of the comment-editing form is not adequately sanitized or output-encoded before being stored and later rendered by the document viewer, so HTML/script fragments survive the round trip and are interpreted as markup in the victim's browser session. Because the payload is persisted with the document/comment and executed when another user renders it, this behaves as a stored XSS rather than a purely reflected one. The CVSS scope change (S:C) is appropriate: the injected script runs outside the security authority of the vulnerable comment component, gaining access to the DOM, session context, and any data or tokens the DocumentServer editor exposes to the page. There are no CPE strings in the supplied data, so affected identification rests on the version boundary stated in the description and the vendor changelog.

Know when Onlyoffice gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Authenticated comment access gives PR:L; XSS realistically needs a victim to view the comment so UI:R; browser-context execution crosses trust boundary (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

ONLYOFFICE Docs before 9.2.1 allows XSS in the textarea of the comment editing form. This is related to DocumentServer.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
popular self-hosted collaborative office/document server, common but not universal
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2021-3199 CRITICAL POC
9.8 Jan 26

Directory traversal with remote code execution can occur in /upload in ONLYOFFICE Document Server before 5.6.3, when JWT

CVE-2023-30187 CRITICAL POC
9.8 Aug 14

An out of bounds memory access vulnerability in ONLYOFFICE DocumentServer 4.0.3 through 7.3.2 allows remote attackers to

CVE-2023-30186 CRITICAL POC
9.8 Aug 14

A use after free issue discovered in ONLYOFFICE DocumentServer 4.0.3 through 7.3.2 allows remote attackers to run arbitr

CVE-2023-34939 CRITICAL POC
9.8 Jun 22

Onlyoffice Community Server before v12.5.2 was discovered to contain a remote code execution (RCE) vulnerability via the

CVE-2022-29777 CRITICAL POC
9.8 Jun 02

Onlyoffice Document Server v6.0.0 and below and Core 6.1.0.26 and below were discovered to contain a heap overflow via t

CVE-2022-29776 CRITICAL POC
9.8 Jun 02

Onlyoffice Document Server v6.0.0 and below and Core 6.1.0.26 and below were discovered to contain a stack overflow via

CVE-2021-25833 CRITICAL POC
9.8 Mar 01

A file extension handling issue was found in [server] module of ONLYOFFICE DocumentServer v4.2.0.71-v5.6.0.21. Rated cri

CVE-2021-25832 CRITICAL POC
9.8 Mar 01

A heap buffer overflow vulnerability inside of BMP image processing was found at [core] module of ONLYOFFICE DocumentSer

CVE-2021-25831 CRITICAL POC
9.8 Mar 01

A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.3. Rated critical

CVE-2021-25830 CRITICAL POC
9.8 Mar 01

A file extension handling issue was found in [core] module of ONLYOFFICE DocumentServer v4.2.0.236-v5.6.4.13. Rated crit

CVE-2023-30188 HIGH POC
7.5 Aug 14

Memory Exhaustion vulnerability in ONLYOFFICE Document Server 4.0.3 through 7.3.2 allows remote attackers to cause a den

CVE-2021-25829 HIGH POC
7.5 Mar 01

An improper binary stream data handling issue was found in the [core] module of ONLYOFFICE DocumentServer v4.0.0-9-v5.6.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy