CVE-2025-13401: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimizingmatters Autoptimize
The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the LCP Image to preload metabox in all versions up to, and including, 3.1.13 due to insufficient input sanitization and output escaping on user-supplied image attributes in the "create_img_preload_tag" function. This makes it possible for authenticated attackers, with contributor level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
The Autoptimize plugin for WordPress suffers from a stored XSS vulnerability due to improper neutralization of input in the LCP Image to preload metabox feature. Specifically, the "create_img_preload_tag" function fails to adequately sanitize and escape user-supplied image attributes, enabling authenticated attackers with contributor or higher privileges to inject arbitrary JavaScript code. This code executes in the context of any user who accesses the compromised page, potentially leading to session hijacking or other client-side attacks. The vulnerability affects all versions up to 3.1.13 and has a CVSS 3.1 base score of 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N).
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via the vulnerable image preload feature. These scripts execute in the browsers of users who visit the infected pages, potentially leading to information disclosure or session compromise. The impact is limited to confidentiality and integrity loss without availability impact. There are no known exploits in the wild as of the publication date.
Mitigation Recommendations
Patch status is not yet confirmed — no official patch or remediation guidance is provided in the available data. Users should monitor the vendor's advisory channels for updates. Until a fix is available, restrict contributor-level access to trusted users and consider disabling or limiting use of the LCP Image to preload metabox feature if possible.
CVE-2025-13401: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in optimizingmatters Autoptimize
Description
The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the LCP Image to preload metabox in all versions up to, and including, 3.1.13 due to insufficient input sanitization and output escaping on user-supplied image attributes in the "create_img_preload_tag" function. This makes it possible for authenticated attackers, with contributor level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Autoptimize plugin for WordPress suffers from a stored XSS vulnerability due to improper neutralization of input in the LCP Image to preload metabox feature. Specifically, the "create_img_preload_tag" function fails to adequately sanitize and escape user-supplied image attributes, enabling authenticated attackers with contributor or higher privileges to inject arbitrary JavaScript code. This code executes in the context of any user who accesses the compromised page, potentially leading to session hijacking or other client-side attacks. The vulnerability affects all versions up to 3.1.13 and has a CVSS 3.1 base score of 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N).
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via the vulnerable image preload feature. These scripts execute in the browsers of users who visit the infected pages, potentially leading to information disclosure or session compromise. The impact is limited to confidentiality and integrity loss without availability impact. There are no known exploits in the wild as of the publication date.
Mitigation Recommendations
Patch status is not yet confirmed — no official patch or remediation guidance is provided in the available data. Users should monitor the vendor's advisory channels for updates. Until a fix is available, restrict contributor-level access to trusted users and consider disabling or limiting use of the LCP Image to preload metabox feature if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-11-19T10:38:07.284Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6930444551392e1c8b19b543
Added to database: 12/3/2025, 2:08:05 PM
Last enriched: 4/9/2026, 4:29:43 PM
Last updated: 5/9/2026, 9:22:12 PM
Views: 139
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.
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.