Overview
Synology has disclosed a critical cross-site scripting (XSS) vulnerability in Synology Chat Server, the Slack-style messaging package that runs on top of DSM (DiskStation Manager). Tracked as CVE-2026-40541 and carrying a CVSS score of 9.0, the flaw sits in the code that renders link previews inside chat messages — specifically the function that extracts and displays a linked site's domain name. Because that domain string isn't sanitized the way other user-controlled fields are, an authenticated user can smuggle markup into it that executes in the context of anyone who views the message.
NVD's own description is blunt about the blast radius: the bug "allows remote authenticated users, via a UI interaction, to read or write arbitrary files and conduct denial-of-service attacks in DSM." That's a wide jump from a typical stored-XSS write-up — Synology's own scoring treats this less like a defacement bug and more like a path to tampering with files on the underlying NAS.
The vulnerability was published by Synology as advisory Synology-SA-26:10, alongside two related, lower-severity issues in the same Chat Server component.
Technical Details
| Field | Value |
|---|---|
| CVE ID | CVE-2026-40541 |
| Severity | Critical (CVSS 9.0) |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| CWE | CWE-79 — Improper Neutralization of Input During Web Page Generation (Cross-Site Scripting) |
| Attack Vector | Network |
| Privileges Required | Low (any authenticated Chat Server user) |
| User Interaction | Required (a victim must view the crafted message/preview) |
| Scope | Changed |
| Impact | Arbitrary file read/write, denial-of-service in DSM |
| Advisory | Synology-SA-26:10 |
| Fixed Version | 2.4.5-22148 |
How It Works
Synology Chat Server generates a rich preview whenever a message contains a link — a small card showing the destination site's domain name (rendered in capitals) and its favicon. According to public research from Singapore's CSIT (Centre for Strategic Infocomm Technologies), Synology already HTML-encodes most user-controlled strings in the client — display names, for instance, are escaped before insertion into the page. The extractDomain routine used to populate that preview card, however, did not receive the same treatment.
That gap let an attacker craft a URL whose "domain" — as parsed and displayed by the vulnerable function — actually carried HTML/CSS payload rather than a clean hostname. Once the attacker posted that link into a channel or direct message, the injected markup rendered unescaped in the preview card shown to anyone who opened the conversation — a normal, unavoidable "UI interaction" for a chat client. CSIT's independent write-up frames the immediate consequence as CSS/HTML injection that can be leveraged toward account takeover; NVD and Synology's severity assessment goes further, characterizing the reachable impact as arbitrary file read/write and denial-of-service within DSM itself, which is what pushes the CVSS score to 9.0.
Synology-SA-26:10 patched two related issues in the same component at the same time:
- CVE-2026-9548 (CVSS 6.5) — another
extractDomain-based XSS, scoped to reading/writing restricted files and limited DoS - CVE-2026-9491 (CVSS 4.3) — a server-side request forgery in Chat Server's webhook handling, disclosing non-sensitive information
Impact Assessment
Who Is At Risk
- Any organization running Synology Chat Server on DSM 7.2.1, 7.2.2, or 7.3 with a version older than 2.4.5-22148
- Deployments where Chat Server is used for cross-team or external-partner communication, since the only prerequisite for an attacker is a low-privilege authenticated account — not an administrator role
- NAS environments where Chat Server shares the host with sensitive file shares or other DSM packages, given the file read/write reach described in the advisory
Attack Chain
- Authenticated foothold — Attacker holds (or obtains) any ordinary, low-privilege Chat Server account — routine for internal staff, guests, or federated partners
- Malicious link preview — Attacker posts a message containing a crafted URL whose domain string abuses the unsanitized
extractDomainfunction to smuggle HTML/CSS - Victim views the message — A teammate opens the channel or DM; the required "UI interaction" is simply reading the conversation, which triggers rendering of the poisoned preview card
- Injected content executes — The unescaped markup runs in the victim's session context, enabling the file read/write and denial-of-service outcomes described by Synology and NVD
Background Note on Timing
Interestingly, this isn't a brand-new zero-day: Synology accepted the underlying vulnerability report on 2025-12-23, and the fixed build (2.4.5-22148) has reportedly been available since February 2026. Synology's advisory (Synology-SA-26:10) was originally published 2026-05-26 and was updated 2026-08-28 — the same day this CVE record was published to NVD. In other words, patched builds have been out for months; what's new today is the formal CVE-level disclosure catching up. Anyone still running an older Chat Server build has effectively been exposed since before the advisory even existed publicly.
Mitigation
Immediate Actions
- Upgrade Synology Chat Server to 2.4.5-22148 or later on every affected DSM version (7.2.1, 7.2.2, 7.3) — this single update addresses CVE-2026-40541 along with CVE-2026-9548 and CVE-2026-9491
- Verify the installed Chat Server package version in Package Center rather than assuming DSM itself being current implies the package is current — Chat Server updates independently
- Audit who has Chat Server accounts, especially guest or federated-partner access, since the only privilege an attacker needs is a standard authenticated login
- Synology states there is no interim workaround — patching is the only fix
Detection Opportunities
- Review Chat Server message history and webhook configurations for link previews pointing at unusual or malformed "domains" that don't resemble normal hostnames
- Monitor DSM file-integrity and package logs around the Chat Server process for unexpected file writes following message or link-preview activity
- After patching, confirm the running build number matches 2.4.5-22148 or later across every DSM host that runs the package, not just the primary NAS
Background
CVE-2026-40541 was reported to Synology by researchers Lam Jun Rong and Javier Koh of CSIT/DIS, along with Dr Joseph Teo of CSIT and Warisse Valentin of Aytio. Synology assigned the CVE identifier on 2026-05-25 following acceptance of the report in December 2025. CSIT's public technical write-up frames the root cause as a CSS-injection gap in Chat Server's link-preview rendering that the researchers demonstrated could lead to account takeover; Synology and NVD's own scoring treats the exploitable reach as extending to arbitrary file read/write and denial-of-service within DSM, which is reflected in the CVSS 9.0 rating and the "Scope: Changed" component of the vector.
Chat Server is a widely deployed Synology package used to give NAS-hosted teams a Slack-like collaboration surface, often alongside file shares and other DSM services on the same host. Because the vulnerability requires only a routine authenticated account and a single UI interaction from a target, organizations that treat internal chat access as low-risk should reassess that assumption and confirm their Chat Server builds are current.