CVE-2025-13401: 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 "createimgpreloadtag" 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-13401?
CVE-2025-13401 has a medium severity rating due to its potential to enable Stored Cross-Site Scripting attacks.
How do I fix CVE-2025-13401?
To fix CVE-2025-13401, update the Autoptimize plugin to version 3.1.14 or later.
What versions of the Autoptimize plugin are affected by CVE-2025-13401?
CVE-2025-13401 affects all versions of the Autoptimize plugin up to and including 3.1.13.
What type of vulnerability is CVE-2025-13401?
CVE-2025-13401 is classified as a Stored Cross-Site Scripting vulnerability.
Who is affected by CVE-2025-13401?
Any WordPress site using the Autoptimize plugin version 3.1.13 or earlier is potentially affected by CVE-2025-13401.