Description
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.
Published: 2026-08-28
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored cross‑site scripting that allows an authenticated user with Author-level access or higher to inject and execute arbitrary JavaScript code on any page that renders vulnerable images
Action: Patch
AI Analysis

Impact

This vulnerability in the LiteSpeed Cache WordPress plugin arises from a flawed regular expression that attempts to strip the width and height attributes from images when the Lazy Load Images or Add Missing Sizes features are turned on. The defect permits an authenticated attacker with Author or higher permissions to place a malicious <img> tag with crafted attribute values into the media library or other content areas. When a page containing that image is viewed, the embedded JavaScript runs in the visitor’s browser, allowing the attacker to affect the display or behaviour of the page.

Affected Systems

All installations of the LiteSpeed Cache plugin for WordPress up to and including version 7.7 are vulnerable when the Lazy Load Images or Add Missing Sizes options are enabled. The affected product is listed as litespeedtech:LiteSpeed Cache by the CNA.

Risk and Exploitability

The CVSS score of 6.4 places the issue in the medium‑severity range. The EPSS score is reported as < 1 %, indicating a very low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. An attacker only requires author‑level access, which is commonly granted, and must use the image handling features of the plugin to inject the payload; the impact is confined to browsers that view the affected page.

Generated by OpenCVE AI on August 28, 2026 at 15:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the LiteSpeed Cache plugin to version 7.8 or later to remove the vulnerable regular expression handling of image attributes.
  • If an immediate upgrade is not feasible, disable the Lazy Load Images and Add Missing Sizes options in the plugin settings to prevent the vulnerable code path from executing.
  • Restrict WordPress user accounts so that only trusted personnel have Author or higher roles, limiting the pool of users who can inject malicious content.

Generated by OpenCVE AI on August 28, 2026 at 15:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 23:30:00 +0000


Fri, 28 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 28 Aug 2026 08:30:00 +0000

Type Values Removed Values Added
First Time appeared Litespeedtech
Litespeedtech litespeed Cache
Wordpress
Wordpress wordpress
Vendors & Products Litespeedtech
Litespeedtech litespeed Cache
Wordpress
Wordpress wordpress

Fri, 28 Aug 2026 05:00:00 +0000

Type Values Removed Values Added
Description 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.
Title LiteSpeed Cache <= 7.7 - Authenticated (Author+) Stored Cross-Site Scripting via img Tag Attributes
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Litespeedtech Litespeed Cache
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-08-28T23:18:59.081Z

Reserved: 2026-02-24T16:38:54.193Z

Link: CVE-2026-3129

cve-icon Vulnrichment

Updated: 2026-08-28T18:29:53.491Z

cve-icon NVD

Status : Deferred

Published: 2026-08-28T05:16:42.200

Modified: 2026-08-29T00:16:37.263

Link: CVE-2026-3129

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T15:30:08Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')