CVE-2026-3129: LiteSpeed Cache <= 7.7 - Authenticated (Author+) Stored Cross-Site Scripting via img Tag Attributes

Published Aug 28, 2026
·
Updated

The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via crafted <img> tag attributes in all versions up to, and including, 7.7. This is due to a flawed regular expression that is used to strip width and height attributes from images when the "Lazy Load Images" and "Add Missing Sizes" features are enabled. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that execute whenever a user accesses an injected page.

Affected Software

1 affected component
LiteSpeed Cache<=7.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade LiteSpeed Cache (WordPress plugin) to a version that resolves this vulnerability.

    Fixed in 7.7
  2. Configuration

    Disable the "Lazy Load Images" feature to avoid the vulnerable width/height attribute stripping behavior (vulnerable in versions up to and including 7.7 when enabled).

    LiteSpeed Cache (WordPress plugin) Lazy Load Images = disable
  3. Configuration

    Disable the "Add Missing Sizes" feature to avoid the vulnerable width/height attribute stripping behavior (vulnerable in versions up to and including 7.7 when enabled).

    LiteSpeed Cache (WordPress plugin) Add Missing Sizes = disable
  4. Compensating control

    Because the issue requires authenticated attackers with Author-level access and above, restrict/limit who can publish or edit posts (Author and above) in WordPress to trusted users to reduce the likelihood of stored XSS injection.

Event History

Aug 28, 2026
CVE Published
via MITRE·03:39 AM
Data Sourced
via MITRE·03:39 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Are both image-related features required for exposure?

The vulnerable attribute-stripping logic is used when both “Lazy Load Images” and “Add Missing Sizes” are enabled. The provided information does not establish exposure when either feature is disabled.

2

What level of access does an attacker need?

An attacker must be authenticated to WordPress with an Author role or a higher-privileged role. No separate user interaction by the attacker is required.

3

When would injected code run?

The stored script runs whenever another user accesses a page containing the attacker’s crafted image tag. This can affect users who view the injected page, including higher-privileged users.

4

Which deployments should be prioritized for remediation?

Prioritize LiteSpeed Cache installations running version 7.7 or earlier where both affected features are enabled and Author-or-higher accounts can create or modify page content.

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