---
id: CVE-2026-3129
title: >-
  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
summary: >-
  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` …
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2026-08-28'
updated: '2026-08-29'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-3129'
references:
  - url: >-
      https://blog.litespeedtech.com/2026/08/27/security-update-for-lscwp-cve-2026-3129/
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/litespeed-cache/trunk/src/media.cls.php#L761
    label: security@wordfence.com
  - url: 'https://plugins.trac.wordpress.org/changeset/3473912/'
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/c107674d-173f-49cf-b329-e7bffaee841d?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00193
epssPercentile: 0.09285
ingestedAt: '2026-08-29T21:42:36.732Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
