{
 "id": "WPSEC-2026-4610",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4610/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4610/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4610/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4610.json",
 "title": "WP-Optimize <= 4.7.1 - Authenticated (Editor+) Arbitrary File Read via Minify Script Module URL",
 "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.",
 "plugin": {
  "slug": "wp-optimize",
  "name": "WP-Optimize",
  "full_name": "WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance",
  "wordpress_org": "https://wordpress.org/plugins/wp-optimize/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wp-optimize/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wp-optimize"
 },
 "type": "LFI",
 "cwe": [
  "CWE-22"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.9,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.7.2",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.7.2"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.7.2",
 "remediation": "Update to 4.7.2 or later.",
 "fix_released": "2026-12-03T12:30:21+00:00",
 "published": "2026-12-04T12:48:38+00:00",
 "updated": "2026-12-04T09:16:39.158734+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4610/",
  "https://plugins.svn.wordpress.org/wp-optimize/tags/4.7.2/",
  "https://wordpress.org/plugins/wp-optimize/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wp-optimize",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-12-04"
 }
}