CVE Watch

WP Fastest Cache CVE-2026-119114: Permalink Path Traversal Can Delete Your Site

· 6 min read
A stack of light red cache folders, one holding a database icon, with an arrow climbing out of it past three “../” steps to a root folder marked with a slash that is breaking apart into small squares

If you run WP Fastest Cache, update it to 1.5.5 or later. If the same site also runs Custom Permalinks or GeoDirectory, do it today. CVE-2026-119114, published November 21, is a path traversal bug in the code WP Fastest Cache uses to clear a page’s cache. If a post’s permalink contains ../, the plugin follows it out of its cache folder and deletes whatever directory it lands on, including the one that holds wp-config.php. The fix shipped in 1.5.5 on November 5, two weeks before disclosure, so most sites with automatic updates are already covered. No attacks have been reported.

At a glance

CVECVE-2026-119114
PluginWP Fastest Cache (wp-fastest-cache), 1,000,000+ active installs
TypePath traversal leading to arbitrary directory deletion
SeverityCVSS 7.4 (High), high attack complexity
Affected1.5.4 and earlier, only with Custom Permalinks or GeoDirectory also installed
Fixed1.5.5 (released November 5, 2026)
Found byJakub Herman, reported October 29, disclosed by Wordfence November 20
StatusNo exploitation reported

What’s wrong

When a post changes or gets a new approved comment, WP Fastest Cache clears that post’s cached copy, plus the cached copies of the posts just before and after it. To find the cache folder, it takes the post’s permalink, strips the domain and adds what’s left to wp-content/cache/all/. In 1.5.4, that code (in singleDeleteCache() and delete_next_prev_cache()) looked like this:

$permalink = urldecode(get_permalink($post_id));

if(preg_match("/https?:\/\/[^\/]+\/(.+)/", $permalink, $out)){
    $path = $this->getWpContentDir("/cache/all/").$out[1];
    ...
    if(is_dir($path)){
        $this->rm_folder_recursively($path);
    }
}

Nothing checks the path. The plugin trusts the permalink because WordPress normally won’t create one with ../ in it. The plugin already had a .. check, but only on a different code path. Custom Permalinks and GeoDirectory both let a permalink be set to a value that WordPress’s own slug rules would never produce, and that’s where the trust breaks.

The attack, as the record describes it:

  1. A post ends up with a permalink containing traversal sequences, something like ../../../. This needs one of the two co-installed plugins.
  2. Something makes WP Fastest Cache clear that post’s cache: an edit, or an approved comment on that post or on the post next to it. A comment needs no login, and on sites that auto-approve returning commenters, an attacker can trigger it.
  3. The plugin builds wp-content/cache/all/../../../, finds that it’s a real directory, and deletes its contents.
  4. If that directory is the site root, wp-config.php goes with it. WordPress then shows its installer to the next visitor. Whoever gets there first can point the site at their own database, log in as administrator and upload code.

That last step is why a “file deletion” bug is scored as a path to full takeover.

What the attacks look like

None have been reported. If someone tried it on your site, you’d expect to see:

  • a post or listing with an odd permalink containing ..
  • a newly approved comment on that post, or on one beside it
  • whole directories missing, or a site that suddenly shows the WordPress setup screen
  • requests to /wp-admin/setup-config.php or /wp-admin/install.php in your access logs

What to do

1. Update

wp plugin list --name=wp-fastest-cache --fields=name,version,status
wp plugin update wp-fastest-cache

You want 1.5.5 or later. In 1.5.5, every cache deletion goes through one function, delete_cache_variants(), which stops on any path containing ... It also no longer deletes in place: it moves the cache entry into wp-content/cache/tmpWpfc, which the plugin clears later.

2. Check whether you’re in the risky combination

wp plugin list --fields=name,version,status | grep -E "wp-fastest-cache|custom-permalinks|geodirectory"

If you run WP Fastest Cache without either of the other two, this CVE can’t reach you. Update anyway, since 1.5.3 had its own unauthenticated bug, CVE-2026-111464.

3. Look for traversal in permalinks

Custom Permalinks stores its values in post meta. Look for any that contain ..:

wp db query "SELECT post_id, meta_value FROM $(wp db prefix)postmeta WHERE meta_key = 'custom_permalink' AND meta_value LIKE '%..%'"

On GeoDirectory sites, also look through recently submitted listings for odd URLs. Any match deserves a close look at who created it and when.

4. If something was deleted

Restore from a backup, then check that your administrators and plugins are the ones you expect. If the setup screen was ever reachable on the live site, treat it as a full compromise and work through the remote-access audit.

5. Defense in depth: lock the installer

A WordPress site that’s already installed never needs its installer again. Blocking it turns “wp-config.php deleted” from a takeover into an outage. On Apache or LiteSpeed, in wp-admin/.htaccess:

<FilesMatch "^(install|setup-config)\.php$">
  Require all denied
</FilesMatch>

On nginx:

location ~* ^/wp-admin/(install|setup-config)\.php$ {
    deny all;
}

Remove the block if you ever need to reinstall. While you’re at it, turning on manual comment approval (Settings, then Discussion) removes the unauthenticated trigger for this whole class of bug.

Where sources disagree

  • “Unauthenticated.” The trigger, an approved comment, needs no login. Getting a traversal value into a permalink is a different matter. The record says the two other plugins provide the way to do it, but not who can use it. On many sites that takes an account that can edit posts. That’s a big part of why the score is 7.4 with high complexity, not 9.8.
  • Files or directories. The title says “directory deletion,” and the description says “arbitrary files.” Both are right: the code only acts on a path that’s a directory, then deletes the files inside it.
  • Fixed when. The fix was released on November 5, but the advisory came out on November 20. Sites that updated in early November were protected before anyone knew there was a bug.

The bigger lesson

Neither plugin is broken on its own. WP Fastest Cache assumed permalinks are safe because WordPress makes them safe. Custom Permalinks and GeoDirectory exist to let you set URLs WordPress wouldn’t create. Each assumption is reasonable, and together they delete your site. That’s the cost every plugin adds: not just its own bugs, but its interactions with everything else you run. Code that turns data into file paths has to check the path itself, wherever the data came from.

It’s also another reason a plugin has to earn its place. A cache plugin and a permalink plugin can each be worth it. Every plugin you add is one more thing the others can interact with.

Sources