CVE-2025-40943: Stored XSS via Trace File Import in Siemens SIMATIC Diagnostics
- Vendor
- Siemens
CVE-2025-40943 is an improper input neutralization vulnerability in Siemens SIMATIC industrial automation devices that affects the handling of diagnostic trace files. The affected devices do not properly sanitize the contents of imported trace files. An attacker can craft a malicious trace file and, through social engineering, induce an authorized user with the "Read diagnostics" function right to import it. When the trace file is processed, attacker-controlled script content can execute in the user’s browser session within the device web interface. Because the script runs in the context of the legitimate user’s authenticated session, it can invoke PLC-related operations exposed by the web server with that user’s existing privileges.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation results in cross-site scripting in the browser session of an authenticated and authorized user. This can allow an attacker to perform actions through the device web interface as that user, including triggering PLC operations that the compromised session is permitted to execute. Depending on the victim user’s assigned rights, this may affect control integrity, enable unauthorized operational changes, and expose session-context data available to the web application.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to diagnostic functions and assign the "Read diagnostics" permission only to trusted users who require it. Prevent untrusted or externally supplied trace files from being imported into affected systems. Limit exposure of device web interfaces to trusted management networks, enforce strong administrative separation, and monitor for unusual diagnostic import activity. Where immediate patching is not possible, follow Siemens compensating controls and hardening guidance for affected SIMATIC platforms.
Remediation
Patch, then assume compromise.
Apply Siemens-provided fixes and upgrade affected products to remediated versions where available. The available advisory information indicates that affected SIMATIC S7-1500 and certain listed ET 200SP CPU variants should be upgraded to version 4.1.2 or later where applicable. For product variants listed as affected in all versions, follow Siemens vendor guidance for the specific platform, including any firmware, software, or web interface updates released to correct trace file sanitization.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-40943 exploited in the wild?
- As of Nov 23, 2026, Mallory has no reports of CVE-2025-40943 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-40943?
- As of Nov 23, 2026, Mallory has found no public exploit for CVE-2025-40943.
- Is there a patch for CVE-2025-40943?
- Apply Siemens-provided fixes and upgrade affected products to remediated versions where available. The available advisory information indicates that affected SIMATIC S7-1500 and certain listed ET 200SP CPU variants should be upgraded to version 4.1.2 or later where applicable.
- What products are affected by CVE-2025-40943?
- Siemens Simatic S7-1500.
- How severe is CVE-2025-40943?
- CVE-2025-40943 has a CVSS v4 score of 9.4 (Critical) and an EPSS score of 0.54% (39th percentile) as of Nov 23, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.