CVE-2025-13902: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting') in Schneider Electric Modicon Controllers M241/M251
CVE-2025-13902 is a medium-severity cross-site scripting (XSS) vulnerability affecting Schneider Electric Modicon Controllers M241 and M251 prior to version 5. 4. 13. 12. It arises from improper neutralization of input during web page generation, allowing authenticated attackers to inject malicious JavaScript. The attack requires the victim to interact by hovering over a crafted element on the affected web interface, which then executes the injected script in the victim's browser. This vulnerability does not require user authentication to be bypassed but does require the attacker to have some level of authenticated access to the device. Exploitation can lead to session hijacking, unauthorized actions, or information disclosure within the context of the victim’s browser session. No known exploits are currently reported in the wild. Organizations using these Schneider Electric controllers should prioritize patching to prevent potential exploitation.
AI Analysis
Technical Summary
CVE-2025-13902 is a cross-site scripting (XSS) vulnerability classified under CWE-79, found in Schneider Electric Modicon Controllers M241 and M251 models running firmware versions prior to 5.4.13.12. The flaw stems from improper input sanitization during the generation of web pages served by the controller’s embedded web server. Authenticated attackers can inject malicious JavaScript code into the web interface, which executes when a victim user hovers over a maliciously crafted element. This vulnerability leverages the victim’s browser to run arbitrary scripts, potentially enabling session hijacking, unauthorized command execution within the web interface, or theft of sensitive information accessible via the browser session. The attack vector requires the attacker to have authenticated access to the controller’s web interface, but no additional user interaction beyond hovering is needed. The CVSS v4.0 base score is 5.1 (medium), reflecting network attack vector, low attack complexity, no privileges required beyond authentication, and partial scope impact. The vulnerability affects industrial control systems widely used in manufacturing, energy, and critical infrastructure sectors. No public exploits have been reported yet, but the potential for targeted attacks against operational technology environments exists. The vulnerability highlights the importance of secure coding practices in embedded web interfaces of industrial devices.
Potential Impact
The impact of CVE-2025-13902 is significant for organizations relying on Schneider Electric Modicon M241 and M251 controllers, especially in industrial and critical infrastructure environments. Successful exploitation can lead to unauthorized execution of JavaScript in the context of a legitimate user’s browser session, potentially allowing attackers to hijack sessions, manipulate controller settings, or exfiltrate sensitive data. This can disrupt industrial processes, cause operational downtime, or facilitate further attacks within the network. Since these controllers are often part of supervisory control and data acquisition (SCADA) systems, the vulnerability could indirectly affect the availability and integrity of critical infrastructure such as manufacturing plants, energy grids, and water treatment facilities. Although exploitation requires authenticated access, insider threats or compromised credentials could enable attackers to leverage this vulnerability. The lack of known exploits currently reduces immediate risk, but the medium severity score and the strategic importance of affected systems warrant prompt remediation to prevent escalation.
Mitigation Recommendations
To mitigate CVE-2025-13902, organizations should immediately upgrade Schneider Electric Modicon M241 and M251 controllers to firmware version 5.4.13.12 or later, where the vulnerability is addressed. If patching is not immediately feasible, restrict access to the controller’s web interface to trusted networks and users only, employing network segmentation and strong access controls. Implement multi-factor authentication (MFA) for all users accessing the device to reduce the risk of credential compromise. Monitor logs for unusual authenticated activity that could indicate attempts to exploit this vulnerability. Additionally, disable or limit the use of web interface features that allow user input or interaction if possible. Security teams should conduct regular vulnerability assessments and penetration testing on industrial control systems to detect similar input validation issues. Finally, educate operational technology personnel about the risks of XSS and the importance of cautious interaction with web interfaces in industrial environments.
Affected Countries
United States, Germany, France, United Kingdom, China, South Korea, Japan, Canada, Australia, Brazil, India
CVE-2025-13902: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting') in Schneider Electric Modicon Controllers M241/M251
Description
CVE-2025-13902 is a medium-severity cross-site scripting (XSS) vulnerability affecting Schneider Electric Modicon Controllers M241 and M251 prior to version 5. 4. 13. 12. It arises from improper neutralization of input during web page generation, allowing authenticated attackers to inject malicious JavaScript. The attack requires the victim to interact by hovering over a crafted element on the affected web interface, which then executes the injected script in the victim's browser. This vulnerability does not require user authentication to be bypassed but does require the attacker to have some level of authenticated access to the device. Exploitation can lead to session hijacking, unauthorized actions, or information disclosure within the context of the victim’s browser session. No known exploits are currently reported in the wild. Organizations using these Schneider Electric controllers should prioritize patching to prevent potential exploitation.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-13902 is a cross-site scripting (XSS) vulnerability classified under CWE-79, found in Schneider Electric Modicon Controllers M241 and M251 models running firmware versions prior to 5.4.13.12. The flaw stems from improper input sanitization during the generation of web pages served by the controller’s embedded web server. Authenticated attackers can inject malicious JavaScript code into the web interface, which executes when a victim user hovers over a maliciously crafted element. This vulnerability leverages the victim’s browser to run arbitrary scripts, potentially enabling session hijacking, unauthorized command execution within the web interface, or theft of sensitive information accessible via the browser session. The attack vector requires the attacker to have authenticated access to the controller’s web interface, but no additional user interaction beyond hovering is needed. The CVSS v4.0 base score is 5.1 (medium), reflecting network attack vector, low attack complexity, no privileges required beyond authentication, and partial scope impact. The vulnerability affects industrial control systems widely used in manufacturing, energy, and critical infrastructure sectors. No public exploits have been reported yet, but the potential for targeted attacks against operational technology environments exists. The vulnerability highlights the importance of secure coding practices in embedded web interfaces of industrial devices.
Potential Impact
The impact of CVE-2025-13902 is significant for organizations relying on Schneider Electric Modicon M241 and M251 controllers, especially in industrial and critical infrastructure environments. Successful exploitation can lead to unauthorized execution of JavaScript in the context of a legitimate user’s browser session, potentially allowing attackers to hijack sessions, manipulate controller settings, or exfiltrate sensitive data. This can disrupt industrial processes, cause operational downtime, or facilitate further attacks within the network. Since these controllers are often part of supervisory control and data acquisition (SCADA) systems, the vulnerability could indirectly affect the availability and integrity of critical infrastructure such as manufacturing plants, energy grids, and water treatment facilities. Although exploitation requires authenticated access, insider threats or compromised credentials could enable attackers to leverage this vulnerability. The lack of known exploits currently reduces immediate risk, but the medium severity score and the strategic importance of affected systems warrant prompt remediation to prevent escalation.
Mitigation Recommendations
To mitigate CVE-2025-13902, organizations should immediately upgrade Schneider Electric Modicon M241 and M251 controllers to firmware version 5.4.13.12 or later, where the vulnerability is addressed. If patching is not immediately feasible, restrict access to the controller’s web interface to trusted networks and users only, employing network segmentation and strong access controls. Implement multi-factor authentication (MFA) for all users accessing the device to reduce the risk of credential compromise. Monitor logs for unusual authenticated activity that could indicate attempts to exploit this vulnerability. Additionally, disable or limit the use of web interface features that allow user input or interaction if possible. Security teams should conduct regular vulnerability assessments and penetration testing on industrial control systems to detect similar input validation issues. Finally, educate operational technology personnel about the risks of XSS and the importance of cautious interaction with web interfaces in industrial environments.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- schneider
- Date Reserved
- 2025-12-02T16:20:41.599Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69b05626ea502d3aa87d6870
Added to database: 3/10/2026, 5:34:30 PM
Last enriched: 3/17/2026, 7:30:14 PM
Last updated: 4/28/2026, 7:26:54 AM
Views: 63
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.