Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-41768: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Beckhoff Automation TwinCAT.HMI.Server

0
Medium
VulnerabilityCVE-2025-41768cvecve-2025-41768cwe-79
Published: Tue Jan 20 2026 (01/20/2026, 08:02:53 UTC)
Source: CVE Database V5
Vendor/Project: Beckhoff Automation
Product: TwinCAT.HMI.Server

Description

CVE-2025-41768 is a medium severity stored cross-site scripting (XSS) vulnerability in Beckhoff Automation's TwinCAT. HMI. Server. An authenticated administrator can inject arbitrary content into a custom CSS field, which is then persisted and rendered on the login and error pages. This vulnerability requires administrator privileges but does not require user interaction to be exploited. The impact includes potential confidentiality and integrity loss through session hijacking or unauthorized actions performed in the context of the administrator. No known exploits are currently reported in the wild. The vulnerability affects TwinCAT. HMI. Server and has a CVSS score of 5.

AI-Powered Analysis

AILast updated: 01/27/2026, 20:24:53 UTC

Technical Analysis

CVE-2025-41768 is a stored cross-site scripting (XSS) vulnerability identified in Beckhoff Automation's TwinCAT.HMI.Server, a component used for human-machine interface (HMI) in industrial automation. The vulnerability arises from improper neutralization of input during web page generation (CWE-79). Specifically, an authenticated administrator can inject arbitrary content into a custom CSS field within the HMI server interface. This malicious content is stored persistently on the device and later rendered on the login and error pages, which are accessible to users. Because the injected content is CSS, it can be crafted to execute malicious scripts or manipulate the page's appearance to facilitate further attacks such as session hijacking or credential theft. The vulnerability requires administrator-level privileges to exploit, meaning an attacker must already have significant access to the system. The CVSS 3.1 base score is 5.5 (medium severity), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, and partial confidentiality and integrity impacts. No public exploits or patches are currently available, increasing the importance of monitoring and applying vendor updates once released. This vulnerability is particularly concerning in industrial control systems where Beckhoff's TwinCAT.HMI.Server is deployed, as it could allow attackers to escalate privileges or move laterally within critical infrastructure environments.

Potential Impact

For European organizations, especially those in manufacturing, energy, and critical infrastructure sectors relying on Beckhoff Automation's TwinCAT.HMI.Server, this vulnerability poses a risk of unauthorized code execution within the HMI interface. Exploitation could lead to theft of sensitive information such as credentials or session tokens, manipulation of HMI displays, or unauthorized commands issued to industrial control systems. While the attack requires administrator credentials, insider threats or compromised admin accounts could leverage this vulnerability to escalate attacks. The persistence of malicious content increases the risk of repeated exploitation and potential disruption of industrial processes. Confidentiality and integrity impacts are moderate, but availability is not directly affected. Given the strategic importance of industrial automation in Europe’s economy and critical infrastructure, exploitation could have cascading effects on operational continuity and safety.

Mitigation Recommendations

Organizations should immediately audit administrator access to TwinCAT.HMI.Server instances and restrict admin privileges to trusted personnel only. Implement strong authentication mechanisms, including multi-factor authentication, to reduce the risk of credential compromise. Monitor and log administrative activities for suspicious behavior. Until an official patch is released by Beckhoff Automation, consider disabling or restricting the use of custom CSS fields in the HMI server configuration. Employ web application firewalls (WAFs) with rules designed to detect and block XSS payloads targeting the HMI interface. Regularly update and patch all industrial control system components as vendor updates become available. Conduct security awareness training for administrators to recognize and prevent injection of malicious content. Finally, segment industrial networks to limit exposure of HMI servers to untrusted networks and reduce lateral movement opportunities.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
CERTVDE
Date Reserved
2025-04-16T11:18:45.761Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 696f3ae84623b1157c221ea9

Added to database: 1/20/2026, 8:20:56 AM

Last enriched: 1/27/2026, 8:24:53 PM

Last updated: 2/6/2026, 4:44:47 AM

Views: 59

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats