CVE-2025-41768 Beckhoff: XSS Vulnerability in TwinCAT 3 HMI Server
A high-privileged remote attacker can inject arbitrary content into the custom CSS field of TwinCAT 3 HMI Server, enabling cross-site scripting attacks.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-41768?
CVE-2025-41768 is a medium-severity cross-site scripting vulnerability in Beckhoff Automation TF2000-HMI-Server, published on 20 Jan 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
An high privileged remote attacker can inject arbitrary content into the custom CSS field on the affected devices due to improper neutralization of input during web page generation ('Cross-site Scripting').
Weakness: CWE-79
Which versions are affected by CVE-2025-41768?
How do I fix CVE-2025-41768?
No fix has been published for CVE-2025-41768 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-2025-41768 being exploited?
There is no known exploitation of CVE-2025-41768 in the wild and no public exploit code.
Sources
Also known as GHSA-hrmx-9vmm-xj23.