Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as WordPress Author
-
DeliveryCraft img tag with XSS payload in attributes
-
ExploitPublish post or page containing payload
-
InstallVictim user visits injected page
-
C2Flawed regex fails to strip malicious attribute content
-
ExecuteScript executes in victim browser context
-
ImpactExfiltrate session cookie or perform privileged action
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Two specific LiteSpeed Cache plugin configuration features must both be simultaneously enabled: 'Lazy Load Images' and 'Add Missing Sizes'. If either feature is disabled, the vulnerable regex code path in media.cls.php is not invoked and exploitation is not possible regardless of input. The attacker must authenticate to the WordPress instance with at minimum Author-level role; Subscriber-level or unauthenticated users cannot create or edit posts and therefore cannot inject the payload. The flaw is limited to self-hosted WordPress installations running LiteSpeed Cache version 7.7 or earlier - WordPress.com-hosted sites and installations without LiteSpeed Cache are unaffected. Limiting factors for defenders: the dual-feature requirement is a meaningful constraint since both features must be deliberately configured; Author-level access is not granted to arbitrary or unauthenticated users by default; exploitation requires the attacker to publish or update a post, generating a content audit trail in WordPress revision history. |
| Impact | The NVD-assigned CVSS 6.4 (Medium) captures a network-reachable, low-complexity, low-privilege attack with scope change but limited confidentiality and integrity impact. Real-world risk is moderate and highly deployment-dependent. The most significant constraining factor is the dual-feature requirement: both 'Lazy Load Images' and 'Add Missing Sizes' must be active simultaneously - without both, the vulnerable code path in media.cls.php is not triggered. Additionally, exploitation requires Author-level WordPress credentials, which meaningfully limits exposure on tightly controlled publishing platforms but represents a realistic threat on membership sites, multi-author blogs, or platforms where contributor accounts are granted to partially trusted users. No EPSS data was supplied in the source intelligence, precluding a quantitative exploitation probability assessment. The absence of a CISA KEV listing and publicly available exploit code indicates this has not been observed in mass exploitation campaigns at time of analysis; however, the low technical complexity once prerequisites are met - a simple crafted img tag post - means the barrier to exploitation is low for anyone who already holds Author access. Priority should be HIGH for WordPress sites with untrusted contributors and both features enabled; LOW for single-author or internally-controlled installations. |
| Exploit ScenarioDerived | An attacker with Author-level credentials to a target WordPress site creates or edits a post containing a crafted img tag - for example, one with a malformed width or height attribute value that embeds a JavaScript event handler - which bypasses the flawed regex in media.cls.php and is stored in the WordPress database. When an administrator, editor, or logged-in user subsequently visits the page containing the injected content, the stored script executes automatically in their browser, potentially exfiltrating their WordPress session cookie to an attacker-controlled server and allowing full account takeover at the victim's privilege level. No publicly available exploit code has been identified at time of analysis, though the technical simplicity of crafting the bypass once the code path is understood reduces the effort required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Stored Cross-Site Scripting in LiteSpeed Cache for WordPress (all versions through 7.7) allows authenticated attackers holding Author-level access or higher to inject persistent malicious scripts via specially crafted <img> tag attributes. The defect lives in a flawed regular expression inside the plugin's media class that is invoked only when both the 'Lazy Load Images' and 'Add Missing Sizes' features are simultaneously active, causing attribute-embedded payloads to survive sanitization and be stored in page content. Injected scripts execute in the browser of any subsequent visitor, enabling session hijacking, credential theft, or unauthorized actions on their behalf. No public exploit code and no CISA KEV listing have been identified at time of analysis.
RemediationAI
A fix has been committed to the WordPress plugin repository as confirmed by changeset https://plugins.trac.wordpress.org/changeset/3473912/; however, the exact patched release version number is not stated in the provided data - administrators should update LiteSpeed Cache to the latest available version immediately via the WordPress admin dashboard (Plugins → Updates) or WP-CLI ('wp plugin update litespeed-cache'). Until the patch is applied, the most effective workaround is to disable either the 'Lazy Load Images' feature or the 'Add Missing Sizes' feature in the LiteSpeed Cache settings panel - disabling either one breaks the condition required for exploitation. Note that disabling lazy load may increase initial page load times and bandwidth consumption for image-heavy sites, so assess the performance trade-off before applying this mitigation. As a secondary control, audit and restrict Author-level account creation to verified trusted users, revoke any unnecessary contributor access, and review existing Author accounts for unauthorized activity. A WAF rule blocking img tag attribute injection patterns in authenticated POST requests to WordPress post/page endpoints can provide additional detection coverage.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LiteSpeed Cache (CPE: cpe:2.3:a:litespeedtech:litespeed_cache:*:*:*:*:*:*:*:*) is a widely-deployed WordPress caching and front-end optimization plugin. The flaw is located in src/media.cls.php at approximately line 761, where a regular expression is applied to strip width and height attributes from img elements as part of the lazy-load image optimization pipeline. CWE-79 (Improper Neutralization of Input During Web Page Generation) identifies the root cause class: the regex is insufficiently constrained and can be bypassed by crafting attribute syntax that the pattern fails to match, allowing arbitrary JavaScript event handlers or other XSS vectors embedded in img tag attributes to pass through and be persisted to the database. The CVSS Scope change (S:C) is appropriate here - the injected script executes in the victim's browser security context, crossing the trust boundary from the WordPress application into the broader browser environment, enabling access to cookies, local storage, and authenticated browser sessions scoped to the WordPress origin.
Know when Litespeed Cache gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Stored XSS payload executes only when a victim navigates to the injected page (UI:R); Author-level authentication required (PR:L); script runs in victim browser crossing scope boundary (S:C).
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via crafted <img> tag attributes in all versions up to, and including, 7.7. This is due to a flawed regular expression that is used to strip width and height attributes from images when the "Lazy Load Images" and "Add Missing Sizes" features are enabled. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that execute whenever a user accesses an injected page.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Litespeed Cache
View allAuthentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
Privilege escalation in LiteSpeed Cache plugin for WordPress (versions up to and including 6.3.0.1) allows unauthenticat
Stored cross-site scripting in LiteSpeed Cache for WordPress (versions up to and including 5.7) allows remote unauthenti
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in LiteSpeed Technolo
Relative Path Traversal vulnerability in LiteSpeed Technologies LiteSpeed Cache litespeed-cache allows Path Traversal.4.
Incorrect Privilege Assignment vulnerability in LiteSpeed Technologies LiteSpeed Cache litespeed-cache allows Privilege
Missing Authorization vulnerability in LiteSpeed Technologies LiteSpeed Cache.7. Rated high severity (CVSS 8.2), this vu
Stored XSS in the LiteSpeed Cache WordPress plugin (all versions through 7.8.1) allows unauthenticated attackers to perm
Unauthenticated SSRF in the LiteSpeed Cache WordPress plugin (versions ≤ 7.9) allows any remote attacker without credent
The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'esi' shortcode in version
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in LiteSpeed Technolo
Stored cross-site scripting in the LiteSpeed Cache plugin for WordPress (all versions up to and including 7.9.1) lets au
EUVD-2026-67407
GHSA-g9h6-rmm3-xq5v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB