Skip to main content
CVE-2025-5301VulnerabilityPublished Updated

CVE-2025-5301: OnlyOffice Docs (DocumentServer) · XSS or 'Cross-site Scripting'

Affects OnlyOffice Docs (DocumentServer)Source CVE Database V5

0

Not known to be exploited · public detection template (Nuclei) · 62% EPSS · CVSS 6.1 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
62.3% chance of exploitation in 30 days – higher than 99% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Jun 2025

  2. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  3. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  4. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
GitHubonlyoffice/DocumentServerpkg:github/onlyoffice/DocumentServerOther threatsAffected
  • <=8.3.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Immediate mitigation should include restricting access to ONLYOFFICE Docs servers to trusted internal networks or VPNs to reduce exposure to untrusted users. 2. Implement Web Application Firewall (WAF) rules specifically targeting suspicious POST requests to the WOPI endpoint, filtering out payloads containing script tags or suspicious characters. 3. Employ Content Security Policy (CSP) headers to limit the execution of inline scripts and reduce the impact of XSS attacks. 4. Conduct thorough input validation and output encoding on all user-supplied data, especially data processed via the WOPI protocol, to prevent script injection. 5. Monitor server logs for unusual POST requests or repeated access attempts to the WOPI interface. 6. Educate users about the risks of clicking on untrusted links or opening files from unknown sources within ONLYOFFICE. 7. Stay alert for official patches or updates from OnlyOffice and prioritize their deployment once available. 8. Consider isolating ONLYOFFICE Docs instances in segmented network zones to limit potential lateral movement in case of compromise.

Description

ONLYOFFICE Docs (DocumentServer) in versions equal and below 8.3.1 are affected by a reflected cross-site scripting (XSS) issue when opening files via the WOPI protocol. Attackers could inject malicious scripts via crafted HTTP POST requests, which are then reflected in the server's HTML response.

References

Community reviews

Loading reviews…