XSS in John-Dagelmore Wpspeed – WordPress Speed, Cache & Performance Optimization (Core Web Vitals, Pagespeed 100)
CVE-2026-118784
The WPSpeed plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 2.6.10 This is due to a combination of two issues in the LightImages HTML optimizer: (1) Dispatcher::runOptimize() decides whether the current request is the site's home page by comparing only the URL path from REQUEST_URI against the path of the home URL, so on a plain-permalinks install the author archive URL /?author=<ID> is treated as the home page and the LightImages optimizer runs on it; and (2) LightImages::optimize() calls html_entity_decode() across the entire serialized DOMDocument output under the default-enabled img_processing_entity_decode setting, converting any entity-encoded markup present as plain text in the page (including WordPress's rendered author title) into live HTML. This makes it possible for authenticated attackers, with Subscriber-level access and above, to store entity-encoded markup in their own nickname/display_name through the normal profile endpoint and have that markup rehydrated into executing script when any logged-out visitor loads their author archive.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- plugins.trac.wordpress.org/browser/wpspeed/tags/2.6.10/src/Core/LightImages.php
- plugins.trac.wordpress.org/browser/wpspeed/tags/2.6.10/src/Core/Optimize.php
- plugins.trac.wordpress.org/browser/wpspeed/tags/2.6.10/src/Dispatcher.php
- plugins.trac.wordpress.org/changeset/3771695/wpspeed/trunk/src/Core/LightImages…
- www.wordfence.com/threat-intel/vulnerabilities/id/47aa1a74-4189-4521-ba6e-e91a0…
Frequently asked questions
- What is CVE-2026-118784?
- CVE-2026-118784 is a medium-severity vulnerability in John-Dagelmore Wpspeed – WordPress Speed, Cache & Performance Optimization (Core Web Vitals, Pagespeed 100), classified under Cross-site Scripting. CVSS score: 6.4/10. Published 2026-11-07.
- How severe is CVE-2026-118784?
- Medium severity. CVSS v3 base score is 6.4 out of 10.