CVE-2026-25787 Cross-site scripting in SIMATIC Drive Controller CPU 1504D TF
An authenticated attacker can inject malicious scripts into the web interface, leading to code execution in the victim's session.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-25787?
CVE-2026-25787 is a critical cross-site scripting vulnerability in Siemens SIMATIC Drive Controller CPU 1504D TF, published on 12 May 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
Affected devices do not properly validate and sanitize Technology Object (TO) name rendered on the "Motion Control Diagnostics" page of the web interface. This could allow an authenticated attacker who is authorized to download a TIA project into the product, to inject malicious scripts into the page. If a benign user with appropriate rights accesses the "Motion Control Diagnostics" parameters page, the malicious code would be executed in the scope of their web session.
Weakness: CWE-79
Which versions are affected by CVE-2026-25787?
How do I fix CVE-2026-25787?
No fix has been published for CVE-2026-25787 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-25787 being exploited?
There is no known exploitation of CVE-2026-25787 in the wild and no public exploit code.
Sources
Also known as GHSA-6664-q64g-w92p.