CVE-2026-3129
Description
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 WordPress components
-
LiteSpeed Cache Plugin · litespeed-cacheUp to and including 7.7View on WordPress.org
A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.
Affected products and versions
- litespeedtech LiteSpeed Cache — Up to and including 7.7
References
- blog.litespeedtech.com https://blog.litespeedtech.com/2026/08/27/security-update-for-lscwp-cve-2026-3129/
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/litespeed-cache/trunk/src/media.cls.php#L761
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset/3473912/
- www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/c107674d-173f-49cf-b329-e7bffaee841d?source=cve
- nvd.nist.gov Official NVD record