CVE-2025-5301: OnlyOffice Docs (DocumentServer) · XSS or 'Cross-site Scripting'
Affects OnlyOffice Docs (DocumentServer)Source CVE Database V5
Not known to be exploited · public detection template (Nuclei) · 62% EPSS · CVSS 6.1 Medium.
Data as of 26 Oct 2026, 14:05 UTC
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Jun 2025
Detectable: evidence found.
nuclei template: ONLYOFFICE Docs (DocumentServer) - Reflected Cross-Site Scripting
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubonlyoffice/DocumentServerpkg:github/onlyoffice/DocumentServerOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediate mitigation should include restricting access to ONLYOFFICE Docs servers to trusted internal networks or VPNs to reduce exposure to untrusted users.
- Implement Web Application Firewall (WAF) rules specifically targeting suspicious POST requests to the WOPI endpoint, filtering out payloads containing script tags or suspicious characters.
- Employ Content Security Policy (CSP) headers to limit the execution of inline scripts and reduce the impact of XSS attacks.
- Conduct thorough input validation and output encoding on all user-supplied data, especially data processed via the WOPI protocol, to prevent script injection.
- Monitor server logs for unusual POST requests or repeated access attempts to the WOPI interface.
- Educate users about the risks of clicking on untrusted links or opening files from unknown sources within ONLYOFFICE.
- Stay alert for official patches or updates from OnlyOffice and prioritize their deployment once available.
- 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
- r.sec-consult.com/onlyoffice (opens in a new tab)
- github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md (opens in a new tab)
- sec-consult.com/vulnerability-lab/advisory/reflected-cross-site-scripting-in-onlyoffice-docs-documentserver/ (opens in a new tab)
- seclists.org/fulldisclosure/2025/Jun/18 (opens in a new tab)