CVE-2026-40534
Executive Summary
CVE-2026-40534 is a cross-site scripting (XSS) vulnerability in the Video API of Synology DiskStation Manager (DSM) affecting versions before 7.2.1-69057-10, 7.2.2-72806-7, and 7.3.2-86009-2. An authenticated remote attacker can exploit this flaw to read or write limited files when the video player is launched. The vulnerability carries a CVSS score of 5.4, reflecting its medium severity and its requirement for user interaction and authentication.
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.
No signup required
Technical Analysis
The vulnerability is classified as CWE-79, "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')." It resides in the Video API component of Synology DSM, which is responsible for handling video-related functionalities, including the initiation and management of the media player interface. The flaw allows an authenticated attacker to inject malicious scripts into web page content that is generated dynamically by the Video API. When a legitimate user launches the video player, the injected script executes in the context of the victim's browser session, operating under the security context of the DSM application.
The CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N indicates that the attack is network-accessible, requires low attack complexity, and demands low-level privileges (authenticated user). User interaction is required, as the victim must launch the player for the payload to execute. The scope is changed (S:C), meaning the exploited component (Video API) impacts resources beyond its original security authority, potentially affecting the broader DSM environment. Confidentiality and integrity impacts are limited (C:L/I:L), while availability is unaffected (A:N). This suggests the attacker can read or write a limited set of files but cannot directly cause denial of service or gain full system control. The description does not provide specific function names, API endpoints, or parameter names, so the attack mechanism must be understood at the vulnerability class level. The improper neutralization likely occurs when user-supplied input is reflected in the HTML or JavaScript output of the video player without proper encoding or sanitization. Because the attacker is authenticated, the input may be stored or reflected through video metadata, playlist names, or other user-controllable fields processed by the Video API.
Exploitation Scenarios
Reconnaissance and Target Identification: The attacker identifies a Synology DSM instance exposed to the network (e.g., through Shodan dorks like
http.title:"DiskStation"). The attacker must possess valid low-privileged credentials, as the vulnerability requires remote authenticated access. This could be obtained through phishing, credential reuse, or prior compromise.Triggering the Flaw: The attacker interacts with the Video API, likely by submitting crafted input into a field that is later rendered in the video player interface. Since the NVD description does not specify the exact parameter or endpoint, the attack is inferred at the class level: the attacker injects a script payload (e.g.,
<script>...</script>or an event handler) into a user-controllable input that the Video API fails to neutralize before including it in the generated web page.Payload Execution: When a legitimate user (or the attacker themselves, in a self-XSS scenario) launches the video player, the injected script executes in the context of the DSM web application. The script can perform actions such as reading or writing limited files accessible to the user's session. The exact method of file access is not detailed in the description, but it likely leverages the DSM's web-based file management capabilities or API calls available to the authenticated user.
Post-Exploitation Impact: The attacker can exfiltrate limited files (confidentiality impact) or modify limited files (integrity impact). Due to the scope change, the attacker might be able to pivot to other DSM functionalities or escalate privileges within the application, though the CVSS metrics suggest the impact is constrained. No public proof-of-concept or exploit code is available, and no threat actor campaigns have been observed. The attack chain is therefore inferred from the vulnerability class and the limited technical details provided.
Impact Assessment
The business impact of CVE-2026-40534 is moderate. Synology DSM is widely used in enterprise and home office environments for network-attached storage (NAS), backup, and media management. The Video API is a core component for video surveillance and media playback, often integrated with IP cameras and other IoT devices. An attacker with valid credentials could exploit this XSS to access or alter sensitive files, potentially leading to data leakage or manipulation. The CVSS score of 5.4 reflects a medium severity, with the requirement for authentication and user interaction reducing the likelihood of widespread exploitation. However, the scope change indicates that the vulnerability could affect resources beyond the Video API, potentially allowing the attacker to interact with other parts of the DSM interface. The blast radius is limited to the authenticated user's permissions and the files they can access. No known active exploitation or public PoC exists, but the vulnerability could be used in targeted attacks against organizations using Synology NAS devices for critical data storage.
Detection Guidance
Sigma Rule
title: Synology DSM Video API XSS Exploitation Attempt
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential cross-site scripting attempts against Synology DSM Video API
author: Threat Intelligence Team
date: 2026-05-15
logsource:
category: webserver
product: synology
detection:
selection:
cs-method: 'GET'
cs-uri-query|contains:
- '<script'
- 'javascript:'
- 'onerror='
- 'onload='
- 'alert('
cs-uri-stem|contains:
- '/webapi/entry.cgi'
- '/webman/modules/VideoPlayer'
condition: selection
falsepositives:
- Legitimate video metadata containing script-like strings
level: medium
tags:
- attack.t1059
- cve.2026.40534
YARA Rule
rule CVE_2026_40534_Synology_DSM_XSS
{
meta:
description = "Detects potential XSS payloads targeting Synology DSM Video API"
author = "Threat Intelligence Team"
date = "2026-05-15"
cve = "CVE-2026-40534"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2026-40534"
strings:
$xss1 = "<script" ascii nocase
$xss2 = "javascript:" ascii nocase
$xss3 = "onerror=" ascii nocase
$xss4 = "onload=" ascii nocase
$xss5 = "alert(" ascii nocase
$api1 = "/webapi/entry.cgi" ascii nocase
$api2 = "VideoPlayer" ascii nocase
condition:
any of ($xss*) and any of ($api*)
}
Suricata IDS Rule
alert http any any -> any any (msg:"CVE-2026-40534 Synology DSM Video API XSS Attempt"; flow:to_server,established; content:"GET"; http_method; content:"/webapi/entry.cgi"; http_uri; content:"<script"; http_uri; nocase; pcre:"/(script|onerror|onload|javascript:)/Ui"; reference:cve,2026-40534; reference:url,https://nvd.nist.gov/vuln/detail/CVE-2026-40534; classtype:web-application-attack; sid:202640534; rev:1;)
Elastic Detection
sequence by host.id, user.name with maxspan=5m
[network where network.protocol == "http" and
url.path == "/webapi/entry.cgi" and
url.query contains "<script" or
url.query contains "javascript:" or
url.query contains "onerror=" or
url.query contains "onload="]
Splunk SPL Query
index=web sourcetype=access_combined
| search uri_path="/webapi/entry.cgi" OR uri_path="/webman/modules/VideoPlayer"
| regex uri_query="(?i)(<script|javascript:|onerror=|onload=|alert\()"
| stats count by src_ip, uri_path, uri_query, user_agent
| where count > 0
Wazuh OSSEC Rule
<group name="synology_dsm,cve_2026_40534">
<rule id="100534" level="10">
<decoded_as>web</decoded_as>
<url>/webapi/entry.cgi</url>
<match>(?i)(<script|javascript:|onerror=|onload=|alert\()</match>
<description>CVE-2026-40534: Synology DSM Video API XSS attempt detected</description>
<mitre>
<id>T1059</id>
</mitre>
</rule>
</group>
Mitigation & Patch Guidance
Patch confidence: 0/4 (UNPATCHED — no patch evidence from any tracked source).
Immediate Mitigations:
- Apply input validation and output encoding on all user-supplied data processed by the Video API.
- Restrict access to the DSM Video API to trusted users and networks only.
- Enable Content Security Policy (CSP) headers to mitigate script execution.
- Monitor web server logs for suspicious XSS payloads targeting the Video API.
Patch/Upgrade Steps:
- Upgrade Synology DSM to version 7.2.1-69057-10, 7.2.2-72806-7, or 7.3.2-86009-2 as applicable.
- Verify the installed version via DSM Control Panel > Info Center.
- Apply the update through the DSM Update utility or manual installation.
Long-term Hardening:
- Adopt a secure development lifecycle (SDLC) with regular security testing for web APIs.
- Implement Web Application Firewall (WAF) rules to block XSS patterns.
- Enforce the principle of least privilege for authenticated users.
- Conduct periodic vulnerability assessments and penetration testing of DSM components.
References
- NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2026-40534
- Synology Security Advisory: https://www.synology.com/en-global/security/advisory/Synology_SA_26_05 (SA_26_05)
- CWE-79: https://cwe.mitre.org/data/definitions/79.html
- CVSS v3.1 Specification: https://www.first.org/cvss/v3.1/specification-document
- No known exploit-in-the-wild or threat actor campaigns observed.
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.