Smush – Image Optimization, Compression, Lazy Load, WebP & CDN <= 4.3.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy Load Background Image Handling
- ID
- WPSEC-2026-3307
- Plugin
- Smush – Image Optimization, Compression, Lazy Load, WebP & CDN (wp-smushit)
- Affected
- from 3.16.0 before 4.3.7
- Remediation
- Update to 4.3.7 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin High · Affected versions High among sites WPSec scans, 2026-11-17
- Attack surface
- Smush – Image Optimization, Compression, Lazy Load, WebP & CDN on WPSec AttackSurface
- Fix released
- Published
Description
The Smush plugin for WordPress is vulnerable to Stored Cross-Site Scripting via crafted HTML attributes in post content in versions 3.16.0 up to, and including, 4.3.6. This is due to the HTML parser reading an element's style attribute with a loose regular expression that can match text inside other attribute values, and the Lazy Load module then rewriting that text in the page markup, which can remove an attribute's closing quote. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the Lazy Load module to be enabled with native lazy loading turned off.
References
- https://wpsec.com/vuln/WPSEC-2026-3307/
- https://plugins.svn.wordpress.org/wp-smushit/tags/4.3.7/
- https://wordpress.org/plugins/wp-smushit/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS