Illustration of a blue shield with a white lightning bolt stopping a cracked purple comment bubble

LiteSpeed Cache: Two XSS Flaws, Update to 7.9.4

Admin

LiteSpeed Cache, the WordPress caching plugin with more than 7 million active installations, has fixed two stored XSS security flaws in version 7.9.4. The official notice came out on November 30, 2026. Both affect 7.9.3 and earlier, need no account, and only apply with certain settings and approved comments.

What we know

  • What it is: according to LiteSpeed Technologies' November 30 notice, these are two stored cross-site scripting flaws (CVE-2026-130039 and CVE-2026-131695): malicious code can be saved into a page and run in the browser of whoever visits it. Wordfence reported them.
  • Versions: both affect 7.9.3 and earlier. The fix is in 7.9.4, which LiteSpeed released to the WordPress repository on November 24, according to the notice's timeline.
  • No account needed: in both cases the attacker does not need a user on the site; submitting a comment is enough.
  • Conditions for the first (CVE-2026-130039): caching turned on (the default on single sites), the "Drop Query String" option with at least one entry (also the default), open comments with at least one approved visitor comment, and a theme that shows the names of recent commenters, for example in a sidebar. LiteSpeed says every later visitor to that page is served the altered cached version.
  • Conditions for the second (CVE-2026-131695): "CDN Mapping" turned on (off by default), at least one original URL with a * wildcard (not the default), comments open to logged-out visitors, and an approved comment from the attacker. The notice says approval is immediate if moderation is off, and automatic if the same name and email already have an approved comment. LiteSpeed says it could be used to act on behalf of a visitor, including a logged-in administrator.
  • What the notice does not say: it gives no severity score (CVSS) and does not mention attacks in the wild. The 7.9.4 changelog on WordPress.org does not mention security either.

What changes and what doesn't

The flaws are in the plugin, not in WordPress or the LiteSpeed web server. If your site does not use LiteSpeed Cache, they do not affect you.

If it does, the first flaw is the one that can reach more sites: two of its conditions are on out of the box. The second only affects sites where someone manually set up CDN mapping with wildcards.

The fix is the same for both: run 7.9.4 or later. Since 7.9.4 came out on November 24, a site with automatic plugin updates turned on has probably installed it already; check anyway.

How to tell if it affects you

  1. Check the version. In the WordPress dashboard, go to Plugins and find LiteSpeed Cache. If it shows 7.9.3 or older, update today to the latest release; take a backup first if your site does not do it automatically.
  2. Purge the cache after updating. In the LiteSpeed Cache menu, use the option to purge all cache. This is this article's advice, not the notice's: it makes sure no page saved under the old version keeps being served.
  3. Review recently approved comments. Under Comments, look at visitor comments from the last few weeks: odd names, symbols or code where a name should be. If you find any, trash them and purge the cache again.
  4. Check whether the second case applied. In LiteSpeed Cache, open CDN and see whether "CDN Mapping" is on and any original URL contains a *. If you do not use a CDN set up that way, that flaw did not affect you.
  5. Keep moderation on. In Settings > Discussion, require comments to be manually approved, so a malicious comment cannot go live on its own.
  6. If someone else or a managed host runs your site, ask: "Which version of LiteSpeed Cache is my site on, and when was it updated to 7.9.4 or later?" Many hosts that run LiteSpeed servers install the plugin themselves.

Related: All in One SEO Plugin: Two Security Flaws, Update Now

Sources

Updates: if Wordfence publishes a severity score for these flaws or attacks are reported, it will be added here with its link.

Worried about how this affects your website?
We will go over what to change with you. It is a free 30-minute call.