CVE-2026-131695 in LiteSpeed Cache Plugin
Summary
by MITRE • 11/26/2026
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.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/26/2026
The LiteSpeed Cache plugin for WordPress contains a critical stored cross-site scripting vulnerability affecting all versions up to and including 7.9.3. This flaw stems directly from insufficient input sanitization and output escaping mechanisms within the application code, specifically when processing data submitted through the comment parameter. The nature of this vulnerability allows unauthenticated attackers to inject arbitrary web scripts into pages that are subsequently served to other users. When a victim accesses a page containing the injected script, the malicious code executes in their browser context, potentially leading to session hijacking, credential theft, or defacement depending on the attacker's objectives and the privileges associated with the affected user account.
The exploitation of this vulnerability is contingent upon specific configuration states within the WordPress environment, which narrows the attack surface but does not eliminate the risk for targeted deployments. Successful exploitation requires that CDN Mapping be enabled in the LiteSpeed Cache settings. Furthermore, at least one Original URL entry must contain a wildcard character, typically represented by an asterisk, to allow the malicious content to match and serve on affected pages. This represents a non-default configuration, meaning that while many standard installations may remain unaffected, any site utilizing dynamic CDN routing with broad matching rules is susceptible. The attacker does not need authentication to submit the initial payload; however, they must ensure their comment is approved before it becomes visible to other users.
The approval process for comments can be bypassed or accelerated through common WordPress settings. If comment moderation is disabled entirely, any submitted comment appears immediately on the site, allowing instant exploitation of the vulnerability without further interaction from a moderator. Alternatively, if moderation is enabled but configured with automatic approval rules—such as approving all future comments from an author who has previously had one approved comment—the attacker can achieve immediate visibility after a single successful submission. This two-step process involving initial submission and subsequent approval or auto-approval facilitates the persistence of the malicious script in the database, ensuring that every user viewing the affected page triggers the execution of the injected code.
From a technical classification perspective, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The specific mechanism involves stored XSS where malicious scripts are permanently stored in target servers via input fields like comments and retrieved later when users access the affected pages. In terms of adversary tactics, this aligns with MITRE ATT&CK technique T1059, Command and Scripting Interpreter, specifically under sub-techniques involving web browsers such as JavaScript or HTML. The attacker leverages the victim's browser to execute arbitrary code within the security context of the vulnerable website, potentially escalating privileges if administrative users are targeted.
Mitigation strategies must address both immediate remediation and long-term configuration hardening. The primary defense is upgrading the LiteSpeed Cache plugin to a version later than 7.9.3 where these input sanitization and output escaping issues have been resolved by the developers. For organizations unable to upgrade immediately, disabling CDN Mapping or removing wildcard entries from Original URLs can reduce exposure, although this may impact site performance if those features are critical. Additionally, enforcing strict comment moderation policies that require manual approval for all new authors prevents unapproved malicious comments from being displayed automatically. Implementing a Web Application Firewall with robust XSS detection rules can also provide an additional layer of defense by blocking requests containing script injection patterns before they reach the application logic.