CVE-2026-18978
largeStored XSS in LiteSpeed Cache WordPress plugin via crafted comment content
CVE-2026-18978 is a stored cross-site scripting (XSS) vulnerability in the LiteSpeed Cache plugin for WordPress, affecting all versions up to and including 7.8.1, caused by insufficient input sanitization and output escaping of comment content. An unauthenticated attacker can submit a comment composed entirely of decimal numeric character references (such as ", <, and >) inside an allowed element like <code>; WordPress's wp_kses sanitizer does not treat the resulting data-settings attribute-like substring within text content as an actual HTML attribute, so the payload survives sanitization and executes whenever a user accesses the page containing the injected comment. Exploitation additionally requires the site to allow commenters with a previously approved comment to write new comments without moderation and to have the require_name_email setting disabled. An attacker gains arbitrary web script execution in the browsers of users viewing affected pages, which can enable actions such as cookie theft, unwanted page actions, or redirects (CVSS 3.1 rates this 7.2 High with changed scope and low confidentiality/integrity impact). No public proof-of-concept or confirmed in-the-wild exploitation is currently known, and EPSS estimates only a 0.3% probability of exploitation within the next 30 days.
What to do: Upgrade LiteSpeed Cache to a release newer than 7.8.1 as soon as a patched version is published (no fixed version number is specified in the source data). Until patching, mitigate by enabling the require_name_email comment setting or by requiring moderation of all comments so commenters cannot publish without approval, and audit recently published comments for payloads built from numeric character references inside <code> elements. Site owners should also verify whether their discussion settings allow commenters with a single previously approved comment to post without moderation, since that configuration is a prerequisite for this flaw.
| LiteSpeed Technologies LiteSpeed Cache (WordPress plugin) | All versions up to and including 7.8.1 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Content in all versions up to, and including, 7.8.1 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. A comment payload crafted exclusively from decimal numeric character references (e.g. ", <, >) placed inside an allowed element such as <code> bypasses WordPress's wp_kses sanitization, as kses does not treat a data-settings="..." substring within text content as an HTML attribute, allowing the malicious payload to reach the vulnerable function. For this to be exploitable, the site must allow users with previously approved comments to write new comments, and the require_name_email setting must be disabled.
- Ecosystems
- WordPress
- Weakness
- CWE-79
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
In the news0 stories
No ingested article mentions this CVE yet.