Stored Cross-Site Scripting in Autoptimize Plugin for WordPress
CVE-2026-2430
Key facts
CVE-2026-2430 is a medium severity (CVSS 6.4) vulnerability in WordPress Autoptimize. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.3%, the estimated probability of exploitation in the next 30 days.
How risky is it?
- Partly: Works over the network, but needs a login
- No: No public exploit code yet
- No: No attacks seen yet
- No: Not on CISA's exploited list
Our verdict
Monitor
Low risk for most. Patch in your normal cycle.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory β2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Autoptimize. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Monitor"
- Its CVSS severity is medium (6.4).
What is CVE-2026-2430?
The Autoptimize plugin for WordPress is subject to a Stored Cross-Site Scripting vulnerability due to an insecure lazy-loading image processing method present in all versions up to and including 3.1.14. This flaw arises from using an overly permissive regular expression in the add_lazyload function, which fails to properly validate attributes before modifying image tags. As a result, authenticated attackers with Contributor-level access or higher can exploit this vulnerability to inject arbitrary web scripts. This injection is possible by manipulating the src URL in image tags, wherein attackers can craft a payload that disrupts the HTML structure, elevating text within attribute values to executable HTML, thereby posing a significant risk to users when they load affected pages.
Affected Version(s)
Autoptimize 0 <= 3.1.14