Skip to navigation

Threat reportICS/SCADATL-2026-7322

CVE-2025-13902 - Cross-Site Scripting (CWE-79) in Schneider Electric Modicon M241/M251/M258/LMC058 Controllers

mediumMONITORING

CVE-2025-13902 is a cross-site scripting flaw (CWE-79) in the embedded web server of Schneider Electric Modicon M241, M251, M258 and LMC058 controllers (Claroty also lists M262). An authenticated attacker can plant a crafted element so that a victim's browser runs arbitrary JavaScript when the victim hovers over it. First disclosed .

By

Key facts

IdentifiersTL-2026-7322, CVE-2025-13902, CVE-2025-13901
Also known asSEVD-2026-069-02, ICSA-26-078-02
SeverityMEDIUM
CVSS5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
First disclosed
EPSSCVE-2025-13901: 0.4% (41.7th percentile); CVE-2025-13902: 0.2% (15.0th percentile)
Affected productsSchneider Electric Modicon M241 firmware; Schneider Electric Modicon M251 firmware; Schneider Electric Modicon M258 firmware; Schneider Electric Modicon LMC058 firmware
Weaknesses (CWE)CWE-79
ToolsEcoStruxure Machine Expert v2.5.0.1
MITRE ATT&CK techniquesT0819 Exploit Public-Facing Application, T1059.007 JavaScript, T1078 Valid Accounts, T1190 Exploit Public-Facing Application, T1204 User Execution, T1539 Steal Web Session Cookie
MotivationUNKNOWN
Target sectorsmanufacturing, energy, critical-infrastructure, industrial-automation
Target regionsGlobal
Detection rules9 (1 shown free)
Sources8 cited sources

Detection coverage

As of 2026-12-02, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7322 across Splunk SPL, Microsoft KQL and Sigma, covering 10 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: CVE-2025-13902 Modicon Web Server XSS Payload Injection (Splunk) - Exploitation

Detects HTTP requests to private-address Modicon M241/M251/M258/LMC058 embedded web servers (TCP/80, TCP/443) whose body or query string carries script or event-handler markup (onmouseover, onmouseenter, onerror, <script, javascript:, <svg, <img, <iframe). This is the injection precondition for CVE-2025-13902 (CWE-79, TL-2026-7322): an authenticated low-privilege user plants a crafted element that fires JavaScript in a victim browser on hover. No public PoC or exploitation is known, so detection is behaviour-first on the payload shape rather than a tool signature. Requires HTTP body visibility (Splunk Stream or equivalent) or a TLS-terminating inspection point for HTTPS.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1059.007, T1078
  • Data sources: splunk_stream_http, ot_network_taps, proxy_logs
  • Severity: medium
  • Confidence: medium

Splunk SPL

index=ot_network sourcetype="stream:http" (http_method=POST OR http_method=PUT) (dest_port=80 OR dest_port=443) | eval payload=lower(urldecode(coalesce(form_data,"")." ".coalesce(uri_query,""))) | where match(payload,"onmouseover|onmouseenter|onmouseout|onfocus|onerror|onload|<script|javascript:|<svg|<img|<iframe") | where cidrmatch("10.0.0.0/8",dest_ip) OR cidrmatch("172.16.0.0/12",dest_ip) OR cidrmatch("192.168.0.0/16",dest_ip) | stats count min(_time) as first_seen max(_time) as last_seen values(uri_path) as uri_paths values(http_user_agent) as user_agents by src_ip dest_ip dest_port | eval first_seen=strftime(first_seen,"%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen,"%Y-%m-%d %H:%M:%S")

Microsoft KQL

CommonSecurityLog
| where TimeGenerated > ago(24h)
| where DestinationPort in (80, 443)
| where ipv4_is_private(DestinationIP)
| extend Payload = tolower(url_decode(RequestURL))
| where Payload matches regex @"onmouseover|onmouseenter|onmouseout|onfocus|onerror|onload|<script|javascript:|<svg|<img|<iframe"
| project TimeGenerated, DeviceVendor, SourceIP, SourceUserName, DestinationIP, DestinationPort, RequestMethod, RequestURL, RequestClientApplication

Sigma

title: Modicon Embedded Web Server XSS Payload in HTTP Request (CVE-2025-13902)
id: 7a1c3e52-4b0d-4f6a-9c11-2e5d8a7b3f01
status: experimental
description: Detects script or event-handler markup in HTTP requests to web servers, intended for Schneider Electric Modicon M241/M251/M258/LMC058 controllers affected by CVE-2025-13902 (CWE-79). Scope the rule to controller destinations.
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-13902
    - https://db.gcve.eu/vuln/icsa-26-078-02
author: Threadlinqs Team
date: 2026/12/02
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.007
    - cve.2025.13902
logsource:
    category: webserver
detection:
    selection:
        c-uri|contains:
            - 'onmouseover'
            - 'onmouseenter'
            - 'onmouseout'
            - 'onerror='
            - 'onfocus='
            - '<script'
            - '%3Cscript'
            - 'javascript:'
            - '<svg'
            - '<iframe'
    condition: selection
falsepositives:
    - Authorised web application security testing against controllers
    - Vulnerability scanners such as Tenable OT
level: medium

Known false positives:

  • Authorised penetration tests or web security scans against the controller web UI
  • Engineers uploading legitimate HTML or JavaScript-bearing project content to the controller web server

Tuning notes: Replace the RFC1918 cidrmatch filters with the actual Modicon controller subnet or an asset lookup. Allowlist scanner source IPs (for example Tenable OT, plugin 505937). Confirm Splunk Stream exposes form_data; if only metadata is available, rely on uri_query. HTTPS controllers need TLS inspection or a reverse proxy to see the payload.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • CVE-2025-13902 Modicon Web Server XSS Payload Injection (Sentinel KQL) - Exploitation · unlock with TL Creds
  • CVE-2025-13902 Modicon Web Session Theft Script Patterns (Sentinel KQL) - Post-Exploitation · unlock with TL Creds
  • Modicon Controller Outbound Internet Connection (Sentinel KQL) - C2 / Exfiltration · unlock with TL Creds
  • CVE-2025-13902 Modicon Web Server XSS Payload Injection (Sigma) - Exploitation · unlock with TL Creds
  • CVE-2025-13902 Modicon Web Session Theft Script Patterns (Sigma) - Post-Exploitation · unlock with TL Creds
  • Modicon Controller Outbound Internet Connection (Sigma) - C2 / Exfiltration · unlock with TL Creds
  • CVE-2025-13902 Modicon Web Session Theft Script Patterns (Splunk) - Post-Exploitation · unlock with TL Creds
  • Modicon Controller Outbound Internet Connection (Splunk) - C2 / Exfiltration · unlock with TL Creds

Indicators of compromise

As of 2026-12-02, Threadlinqs Intelligence tracks 10 indicators of compromise for TL-2026-7322.

10 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

No exploitation or public PoC is known; firmware 5.4.13.12 fixes M241/M251 only.

CVE-2025-13902 is an improper neutralization of input during web page generation (CWE-79) in the web server of Schneider Electric Modicon programmable logic controllers. Per the NVD/CVE record and the Schneider Electric CPCERT advisory SEVD-2026-069-02 (republished by CISA as ICSA-26-078-02), authenticated attackers can have a victim's browser run arbitrary JavaScript when the victim hovers over a maliciously crafted element on a web server containing the injected payload. The vulnerability was reported to Schneider Electric by Noam Moshe of Claroty Team82; Schneider Electric CPCERT reported it to CISA.

Scoring: NVD (primary) assigns CVSS 3.1 base 5.4 (Medium), vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. Schneider Electric (CNA) assigns CVSS 4.0 base 5.1 (Medium), vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N. The scope-changed, low confidentiality/integrity impact reflects that the impact lands in the victim's browser session rather than on the controller's own process-control function. CISA's SSVC entry records Exploitation: none, Automatable: no, Technical Impact: partial. Tenable reports no known exploits.

Affected products and fixes (vendor advisory SEVD-2026-069-02 as republished by CISA): Modicon M241 and M251 firmware prior to 5.4.13.12 are fixed in 5.4.13.12, delivered with EcoStruxure Machine Expert v2.5.0.1 (update the controller firmware and reboot). Modicon M258 and LMC058 firmware, all versions, are affected and no fix is listed; only mitigations are provided. Source discrepancy: the Claroty Team82 dashboard lists the affected product as Modicon M241/M251/M262, but the CVE record, NVD, CISA and Tenable list M241/M251/M258/LMC058 and do not name M262 for this CVE; M262 should be verified against the vendor notice. The Claroty page also links SEVD-2026-069-01, which per GCVE is a separate advisory for CVE-2025-13901 (CWE-404 Machine Expert protocol partial DoS, M241/M251 <5.4.13.12, M262 <5.4.10.12) and not for this CVE.

Defensive notes: exploitation requires an authenticated attacker (PR:L) and user interaction (UI:R), so exposure is highest where the controller web server is reachable from corporate or untrusted networks and where engineers or operators browse the controller web UI from workstations holding other sessions. Mitigations from the advisory: keep controllers in a protected environment, use user management and strong passwords, deactivate the web server when unused, use encrypted links, block ports 80 and 443 with segmentation or firewall, and use VPNs for remote access. No network IOCs (IPs, domains, hashes) are published for this vulnerability, so BeaconBeagle C2 correlation was not applicable.

MITRE ATT&CK techniques by tactic:

Initial Access

T0819 Exploit Public-Facing Application; T1078 Valid Accounts; T1190 Exploit Public-Facing Application

Execution

T1059.007 JavaScript; T1204 User Execution

Credential Access

T1539 Steal Web Session Cookie

Remediation

Patches

  • Modicon M241 and M251: update firmware to 5.4.13.12 (delivered with EcoStruxure Machine Expert v2.5.0.1) and reboot the controller
  • Modicon M258 and LMC058: no fix listed; apply mitigations only

Immediate actions

  • Restrict access to the controller web server: block ports 80 and 443 with network segmentation or a firewall
  • Deactivate the controller web server when it is not required
  • Enable user management and enforce strong passwords on controllers

Workarounds

  • Disable the embedded web server where unused
  • Limit controller web UI access to dedicated, hardened engineering workstations

Longer-term hardening

  • Keep controllers in a protected environment, off the public internet and untrusted networks
  • Use encrypted communication links and VPN tunnels for remote access
  • Follow Schneider Electric's Cybersecurity Guidelines for EcoStruxure Machine Expert, Modicon and PacDrive Controllers

Affected and fixed versions

  • Schneider Electric — Modicon M241 firmware
    Vulnerable versions: prior to 5.4.13.12
    Fixed in: 5.4.13.12 (with EcoStruxure Machine Expert v2.5.0.1)
  • Schneider Electric — Modicon M251 firmware
    Vulnerable versions: prior to 5.4.13.12
    Fixed in: 5.4.13.12 (with EcoStruxure Machine Expert v2.5.0.1)
  • Schneider Electric — Modicon M258 firmware
    Vulnerable versions: all versions
  • Schneider Electric — Modicon LMC058 firmware
    Vulnerable versions: all versions

Timeline

  • CVE-2025-13902 (and sibling CVE-2025-13901) reserved by Schneider Electric as CNA
  • Patch publication date for M241/M251 firmware 5.4.13.12 per Tenable; no fix listed for M258/LMC058
  • CVE-2025-13902 published to the CVE Program and NVD with CVSS 4.0 5.1 from Schneider Electric
  • Schneider Electric CPCERT releases SEVD-2026-069-02 for Modicon M241/M251/M258/LMC058; firmware 5.4.13.12 fixes M241/M251
  • CISA ICSA-26-078-02 republishes the notice; Schneider advisory revision 2 released
  • NVD analysis completed, adding primary CVSS 3.1 score 5.4 (vector AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
  • Tenable OT plugin 505937 published to detect affected Modicon firmware; no known exploits reported

Sources cited

Other reports on CVE-2025-13901

AI-drafted from 8 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats