CVE-2026-2430: Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy-loaded Image Attributes

Published Mar 20, 2026
·
Updated

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

1 affected component
Autoptimize Autoptimize<=3.1.14

Event History

Mar 20, 2026
CVE Published
via MITRE·11:25 PM
Data Sourced
via MITRE·11:25 PM
DescriptionSeverityWeakness
Mar 21, 2026
Data Sourced
via NVD·12:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

How do I fix CVE-2026-2430?

To fix CVE-2026-2430, update the Autoptimize plugin to version 3.1.15 or later.

3

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.

4

What type of vulnerability is CVE-2026-2430?

CVE-2026-2430 is a Stored Cross-Site Scripting vulnerability.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203