The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-41768

CVE-2025-41768: TwinCAT 3 HMI Server XSS Vulnerability

CVE-2025-41768 is a stored cross-site scripting flaw in TwinCAT 3 HMI Server that lets authenticated admins inject malicious content via custom CSS fields. This post covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2025-41768 Overview

CVE-2025-41768 is a stored Cross-Site Scripting (XSS) vulnerability affecting Beckhoff TwinCAT 3 HMI Server. An authenticated administrator can inject arbitrary content into the custom CSS field, which is persisted on the device and subsequently returned via the login page and error page. This vulnerability allows malicious content to be served to any user accessing these pages, potentially leading to session hijacking, credential theft, or further attacks against users of the HMI system.

Critical Impact

Authenticated administrators can inject persistent malicious content that affects all users accessing the login and error pages of the TwinCAT 3 HMI Server, potentially compromising Industrial Control System (ICS) environments.

Affected Products

  • Beckhoff TwinCAT 3 HMI Server

Discovery Timeline

  • 2026-01-20 - CVE CVE-2025-41768 published to NVD
  • 2026-01-20 - Last updated in NVD database

Technical Details for CVE-2025-41768

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting (XSS). The TwinCAT 3 HMI Server provides administrators with the capability to customize the appearance of the web interface through a custom CSS field. However, the application fails to properly sanitize or validate the input provided in this field before storing it and subsequently rendering it on the login and error pages.

The stored nature of this XSS vulnerability makes it particularly dangerous in industrial control system environments. Once malicious content is injected by a compromised or rogue administrator account, it persists on the device and is served to every user who accesses the affected pages. This can include operators, engineers, and other personnel accessing the HMI interface.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and output encoding within the TwinCAT 3 HMI Server's custom CSS handling functionality. The application accepts arbitrary content in the CSS field without proper sanitization, allowing attackers to inject HTML or JavaScript code that escapes the CSS context. When the login or error pages are rendered, this malicious content is included without proper encoding, resulting in the execution of attacker-controlled scripts in the context of the victim's browser session.

Attack Vector

The attack requires authentication with administrator privileges to the TwinCAT 3 HMI Server. An attacker with these privileges can navigate to the customization settings and inject malicious payloads into the custom CSS field. The payload is then stored server-side and served to all subsequent visitors of the login and error pages.

This network-accessible vulnerability can be exploited by attackers who have obtained administrator credentials through phishing, credential stuffing, or insider threats. The injected content could redirect users to phishing pages, steal session tokens, or perform actions on behalf of authenticated users. In ICS environments, this could lead to unauthorized access to operational technology systems.

Detection Methods for CVE-2025-41768

Indicators of Compromise

  • Unusual or unexpected content in the custom CSS configuration field of TwinCAT 3 HMI Server
  • Presence of <script> tags, JavaScript event handlers, or encoded payloads within CSS configuration
  • User reports of unexpected browser behavior or redirects when accessing the HMI login or error pages
  • Audit logs showing modifications to custom CSS settings by unexpected or compromised administrator accounts

Detection Strategies

  • Implement regular audits of TwinCAT 3 HMI Server configuration settings, particularly the custom CSS field
  • Deploy web application firewalls (WAF) to detect and block XSS payloads in administrative submissions
  • Monitor HTTP responses from the HMI Server for unexpected JavaScript content in login and error pages
  • Establish baseline configurations and alert on any deviations in the CSS customization settings

Monitoring Recommendations

  • Enable comprehensive logging of all administrative actions on TwinCAT 3 HMI Server
  • Configure SIEM alerts for changes to web interface customization settings
  • Implement integrity monitoring for HMI Server configuration files
  • Review authentication logs for administrator accounts accessing CSS customization features

How to Mitigate CVE-2025-41768

Immediate Actions Required

  • Review and validate the current content of the custom CSS field in all TwinCAT 3 HMI Server instances
  • Remove any suspicious or unexpected content from the CSS customization settings
  • Audit administrator account access and revoke unnecessary privileges
  • Implement network segmentation to limit access to HMI Server administrative interfaces

Patch Information

Consult the CERT@VDE Security Advisory VDE-2025-106 for official patch information and remediation guidance from Beckhoff. Apply vendor-provided security updates as soon as they become available.

Workarounds

  • Restrict network access to the TwinCAT 3 HMI Server administrative interface to trusted IP addresses only
  • Implement multi-factor authentication for administrator accounts where supported
  • Disable or limit the use of custom CSS functionality if not operationally required
  • Deploy Content Security Policy (CSP) headers at the network level to mitigate XSS impact
  • Conduct regular security reviews of all administrator-level configuration changes
bash
# Example: Restrict administrative interface access via firewall
# Allow only trusted management network to access HMI Server admin port
iptables -A INPUT -p tcp --dport 443 -s 10.0.100.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechTwincat

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • CERTVDE Security Advisory VDE-2025-106
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English