Vulnerabilities / WP-Optimize / WPSEC-2026-4610

WP-Optimize <= 4.7.1 - Authenticated (Editor+) Arbitrary File Read via Minify Script Module URL

Medium 4.9 CWE-22Fixed in 4.7.2
ID
WPSEC-2026-4610
Plugin
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance (wp-optimize)
Affected
all versions before 4.7.2
Remediation
Update to 4.7.2 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-22
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-04
Attack surface
WP-Optimize on WPSec AttackSurface
Fix released
Published

Description

The WP-Optimize plugin for WordPress is vulnerable to Arbitrary File Read in all versions up to, and including, 4.7.1 due to missing path containment and file extension validation when the Minify feature resolves asset URLs from page script tags to local files, and because the bundled minifier libraries could import local files. This makes it possible for authenticated attackers with Editor-level access and above to read the contents of arbitrary server files, including sensitive files such as wp-config.php, by publishing a post containing a crafted script module URL (which reads only files without PHP code) or, for files such as wp-config.php, inline style/script blocks that the bundled minifiers resolve. Exploitation requires the Minify feature to be enabled.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0