WS Optimize – All-in-One Speed Booster & Cache Tools <= 3.3.19 - Authenticated (Editor+) Arbitrary File Read

4.9
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2026-12089
CVSS 4.9 (Medium)
Publicly Published June 12, 2026
Last Updated June 13, 2026
Researcher Omar Elshopky (3l5h0pky)

Description

The LWS Optimize – All-in-One Speed Booster & Cache Tools plugin for WordPress is vulnerable to Arbitrary File Read in versions up to, and including, 3.3.19. This is due to the combine_current_css() function trusting <link rel="stylesheet" href="..."> values harvested from page HTML and converting same-site URLs to absolute filesystem paths before reading them with file_get_contents()/Minify\CSS::add(), without enforcing that the resolved path stay within ABSPATH or have a .css extension. This makes it possible for authenticated attackers, with Editor-level access and above, to read arbitrary files.

References

Share

Vulnerability Details for LWS Optimize – All-in-One Speed Booster & Cache Tools

Software Type Plugin
Software Slug lws-optimize (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.3.20, or a newer patched version
Affected Version
  • <= 3.3.19
Patched Version
  • 3.3.20

Recent vulnerabilities in LWS Optimize – All-in-One Speed Booster & Cache Tools

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation