Vulnerability in LiteSpeed Cache — CVE-2026-131695
What to do now
Update LiteSpeed Cache to 7.9.4 or later.
Affected versions
- Everything up to and including 7.9.3
Affected: LiteSpeed Cache (plugin, litespeed-cache)
What the vulnerability is
The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 7.9.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires CDN Mapping to be enabled with at least one Original URLs entry containing a '*' wildcard character, a non-default configuration; the attacker's comment must also be approved, which is satisfied immediately when moderation is disabled or automatically after one prior approved comment from the same name and email address.
Sources
- https://github.com/litespeedtech/lscache_wp/commit/ebffeecbcc977f4503af439c1ed09cc89c5af011
- https://plugins.trac.wordpress.org/browser/litespeed-cache/tags/7.9.3/src/cdn.cls.php#L394
- https://plugins.trac.wordpress.org/browser/litespeed-cache/tags/7.9.3/src/cdn.cls.php#L421
- https://plugins.trac.wordpress.org/browser/litespeed-cache/tags/7.9.3/src/cdn.cls.php#L744
- https://plugins.trac.wordpress.org/browser/litespeed-cache/tags/7.9.3/src/utility.cls.php#L297
- https://plugins.trac.wordpress.org/browser/litespeed-cache/tags/7.9.4/src/cdn.cls.php