CVE-2026-3129

LiteSpeed Cache <= 7.7 - Authenticated (Author+) Stored Cross-Site Scripting via img Tag Attributes

Published Aug 28, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Litespeedtech
Litespeedtech litespeed Cache
Wordpress
Wordpress wordpress
Vendors & Products Litespeedtech
Litespeedtech litespeed Cache
Wordpress
Wordpress wordpress
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Aug 28, 2026, 11:18 PM
Reserved
Feb 24, 2026, 4:38 PM
Status
Deferred
Published
Aug 28, 2026, 5:16 AM
Modified
Aug 29, 2026, 12:16 AM