What the vulnerability does
01Description
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.
Explanation of Vulnerability in Simple Terms
02Summary
Autoptimize versions up to 3.1.13 contain a cross-site scripting vulnerability that allows authenticated users to inject malicious scripts affecting other site visitors. The vulnerability exists in the plugin's handling of user input and can impact site integrity and visitor security. Update to version 3.1.14 or later to resolve this issue.
What an attacker can do
03Attacker Capabilities
Inject malicious scripts that execute in other users' browsers when they visit the site.
Potential impact on your site
04Site Impact
Visitors and other users may be exposed to malicious scripts; site integrity and user trust are at risk.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege user account (e.g., subscriber or contributor role) on the WordPress site.
Key dates
06Disclosure timeline
December 3, 2025
CVE published
April 8, 2026
Record updated