Autoptimize <= 3.1.13 - Authenticated (Contributor+) Stored Cross-Site Scripting
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.
CVE-2025-13401 is a medium severity with CVSS 6.4 Stored Cross-Site Scripting issue affecting the Plugin Autoptimize. It affects Versions up to 3.1.13 and is fixed in 3.1.14.
Review the full Autoptimize vulnerability cluster
Use the related hub and response guides to connect this CVE-2025-13401 report with patch validation, scanner checks, and site hardening work.
Open the grouped hub for related CVEs, affected ranges, severity mix, and patch coverage.
Check access, XML-RPC exposure, backup readiness, and monitoring after patching.
Use containment, evidence capture, remediation, and validation steps when exploit risk is high.
CVE-2025-13401 is tracked for the Plugin Autoptimize as medium severity with CVSS 6.4. The affected range is Versions up to 3.1.13. Update Autoptimize to 3.1.14 or newer where that version is compatible with the site.
Why this report is useful for search and triage
Search engines and operators need more than a title. This page exposes the identifier, affected range, patch evidence, and source coverage that make the vulnerability actionable.
This report has a CVE identifier, which makes it suitable for focused search and vulnerability triage workflows.
Affected version data gives operators a concrete comparison point against installed WordPress software.
A fixed version is present, so the page can answer update and remediation intent directly.
External references are available for source validation, advisory review, and incident notes.
How to validate this finding
Use these checks when converting this record into a patch ticket, incident note, or risk acceptance decision.
Inventory the installed Plugin package and compare its version with Versions up to 3.1.13.
Confirm Autoptimize is updated to 3.1.14 or newer.
Review references and CVSS vector details for exploitability, authentication requirements, and exposure path.
After patching, re-run vulnerability monitoring and keep the related plugin or theme hub under review for follow-up CVEs.
| Software Type | Plugin |
|---|---|
| Software Slug |
autoptimize
View on wordpress.org
|
| CVE | CVE-2025-13401 |
| Patched Versions |
3.1.14
|
| Affected Versions |
Versions up to 3.1.13
|
Related CVEs for Autoptimize
These internal links group the same WordPress plugin by CVE, issue type, severity, and patch status so operators and search engines can connect the full vulnerability cluster.
Autoptimize <= 2.7.7 - Arbitrary File Upload (and Remote Code Execution) via Import Settings
Autoptimize <= 2.7.7 - Race Condition leading to Remote Code Execution
Autoptimize <= 2.7.6 - Authenticated Arbitrary File Upload
Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy-loaded Image Attributes
Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'ao_post_preload' Meta Value
Autoptimize <= 3.1.0 - Authenticated (Admin+) Stored Cross-Site Scripting via Critical CSS Settings
Autoptimize <= 2.8.3 - Stored Cross-Site Scripting
Autoptimize <= 3.0.4 - Sensitive Information Disclosure
This record contains material that is subject to copyright
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. Read more
License: CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. Read more