# CVE-2026-18978: LiteSpeed Cache <= 7.8.1 - Unauthenticated Stored Cross-Site Scripting via Comment Content

- Severity: High 7.2 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-08-28T03:39:34.235Z
- Modified: 2026-08-28T20:17:23.680Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Wordfence

## Description

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. &#34;, &#60;, &#62;) placed inside an allowed element such as &lt;code&gt; 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.

(As written by CVE List.)

## Affected

- litespeedtech LiteSpeed Cache: up to 7.8.1

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/0b045f3d-8412-4e35-b369-2b485639274d?source=cve>
- <https://plugins.trac.wordpress.org/browser/litespeed-cache/trunk/src/media.cls.php#L1405>
- <https://plugins.trac.wordpress.org/browser/litespeed-cache/trunk/src/media.cls.php#L1358>
- <https://plugins.trac.wordpress.org/browser/litespeed-cache/trunk/src/media.cls.php#L1317>
- <https://plugins.trac.wordpress.org/browser/litespeed-cache/trunk/src/media.cls.php#L777>
- <https://plugins.trac.wordpress.org/changeset/3635849/litespeed-cache/trunk/src/media.cls.php>
- <https://plugins.trac.wordpress.org/changeset?old_path=%2Flitespeed-cache/tags/7.8.1&new_path=%2Flitespeed-cache/tags/7.9>

## Sources

- CVE List: [CVE-2026-18978](https://www.cve.org/CVERecord?id=CVE-2026-18978), CVE Terms of Use, modified 2026-08-28
- NVD: [CVE-2026-18978](https://nvd.nist.gov/vuln/detail/CVE-2026-18978), Public domain, modified 2026-08-28

---

Page: https://cve.day/CVE-2026-18978 · Whole record: https://cve.day/CVE-2026-18978.json · Rebuilt by cve.day 2026-11-25T22:59:35.573Z
