CVE-2026-2430: Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy-loaded Image Attributes
The Autoptimize plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the lazy-loading image processing in all versions up to, and including, 3.1.14. This is due to the use of an overly permissive regular expression in the addlazyload function that replaces all occurrences of \ssrc= in image tags without limiting to the actual attribute. 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 by crafting an image tag where the src URL contains a space followed by src=, causing the regex to break the HTML structure and promote text inside attribute values into executable HTML attributes.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-2430?
CVE-2026-2430 is considered a high severity vulnerability due to its potential for Stored Cross-Site Scripting attacks.
How do I fix CVE-2026-2430?
To fix CVE-2026-2430, update the Autoptimize plugin to version 3.1.15 or later.
Who is affected by CVE-2026-2430?
CVE-2026-2430 affects all users of the Autoptimize plugin for WordPress up to and including version 3.1.14.
What type of vulnerability is CVE-2026-2430?
CVE-2026-2430 is a Stored Cross-Site Scripting vulnerability.
Can CVE-2026-2430 be exploited remotely?
Yes, CVE-2026-2430 can be exploited remotely if an attacker has access to contribute content where the vulnerability exists.