CVE-2026-40534 in DiskStation Managerinfo

Summary

by MITRE • 09/18/2026

An improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Video API in Synology DiskStation Manager (DSM) before 7.2.1-69057-10, 7.2.2-72806-7 and 7.3.2-86009-2 allows remote authenticated users to read or write limited files when the player is launched.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 09/18/2026

The vulnerability identified in Synology DiskStation Manager (DSM) represents a critical security flaw within the Video API component, specifically affecting versions prior to 7.2.1-69057-10, 7.2.2-72806-7, and 7.3.2-86009-2. This issue is classified as an improper neutralization of input during web page generation, commonly known as Cross-Site Scripting or XSS. Unlike typical client-side XSS vulnerabilities that primarily aim to steal session cookies or perform actions on behalf of the user within the context of a trusted site, this specific implementation flaw allows for more severe consequences due to the privileged nature of the DSM environment and the integration with local system resources via the Video API player. The core technical failure lies in the insufficient sanitization of user-supplied input parameters that are subsequently rendered into HTML or JavaScript contexts without adequate encoding or validation mechanisms. This oversight enables an attacker to inject malicious scripts that execute within the browser context of a victim who has authenticated access to the DSM interface.

The operational impact of this vulnerability is significantly heightened by the requirement for remote authentication and the specific trigger condition involving the launch of the video player. While many XSS vulnerabilities require social engineering or complex multi-step attacks, this flaw leverages the legitimate functionality of the media playback feature. When an authenticated user accesses a crafted URL or interface element that triggers the Video API to load content containing malicious payloads, the browser executes the injected code with the privileges associated with the DSM web application. This execution context is particularly dangerous because it operates within a trusted domain and often has access to local file system APIs or internal network resources depending on how the Synology NAS integrates its services. The ability for an attacker to read or write limited files indicates that the executed script can interact with the underlying operating system's file permissions through exposed interfaces, potentially leading to data exfiltration of sensitive configuration files, user documents, or even modification of critical system settings if permission boundaries are not strictly enforced by the browser sandboxing mechanisms.

From a classification perspective, this vulnerability aligns closely with CWE-79, which defines Improper Neutralization of Input During Web Page Generation (Cross-site Scripting). The specific capability to read and write files suggests that the exploitation vector may also intersect with CWE-200 or CWE-434 depending on whether the file access is achieved through direct API calls exposed by the DSM backend or via client-side script interactions. In terms of offensive security frameworks, this behavior maps to ATT&CK technique T1059, Command and Scripting Interpreter, specifically JavaScript execution within a browser environment. The attack pattern resembles T1189 Drive-by Client Execution, where the victim is lured into triggering the vulnerability through normal usage patterns rather than explicit malicious actions like downloading files. The authentication requirement places this in the category of authenticated attacks, which are generally considered more severe due to the higher trust level granted by the target system to the attacker's session.

Mitigation strategies for this vulnerability primarily involve immediate patching to a version that includes the fix, specifically DSM 7.2.1-69057-10 or later, as well as versions 7.2.2-72806-7 and 7.3.2-86009-2 and beyond. Synology has addressed the input validation logic within the Video API to ensure that all user-supplied data is properly escaped before being rendered in the web interface, thereby preventing script injection. For organizations unable to patch immediately due to operational constraints, network-level controls such as Web Application Firewalls (WAF) can be configured to detect and block requests containing known XSS payloads targeting the DSM video endpoints. Additionally, restricting access to the DSM administrative interface via IP whitelisting or multi-factor authentication reduces the attack surface by ensuring that only authorized personnel from trusted networks can interact with the vulnerable components. Regular security audits of third-party packages installed on Synology NAS devices are also recommended, as additional vulnerabilities may exist in other modules that could be chained with this flaw to achieve higher privilege escalation or broader file system access.

Responsible

Synology

Reservation

04/14/2026

Disclosure

09/18/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!