Skip to content
Exploit for CVE-2026

Exploit for CVE-2026

Sploitus • November 25, 2026

Path traversal vulnerability in WP Rocket's font optimization pipeline allows unauthenticated attackers to write arbitrary files to the WordPress webroot. The attack chain requires only two HTTP requests and no authentication.

| `-targets ` | File with target URLs (one per line) |

| `-useragent ` | Custom User-Agent header |

| `-timeout ` | Request timeout (default: 10) |

The callback server must handle two requests during the attack chain:

1. `GET //fonts.googleapis.com/css2/x.woff2` returns CSS with a path-traversal `url()`

2. `GET /` returns the file content to write (e.g. a PHP shell)

See [`server/`](server/) for a ready-to-deploy callback server with nginx config and documentation.

python3 CVE-2026-125812.py

Verify the vulnerability without setting up your own callback server, using a safe public endpoint that writes a confirmation string instead of a shell:

python3 CVE-2026-125812.py

> **Note:** WP Rocket caches font pipeline results after the first run. The exploit can only trigger once per page. Run `docker/reset.sh` to clear the cache between attempts.

A local Docker environment with WordPress 6.6 and WP Rocket 3.24.1 for safe testing.

This starts WordPress on ` with WP Rocket pre-installed, activated, and configured with font optimization enabled.

Truncates beacon tables, clears WP Rocket page and font caches, and removes the shell file.

The [`server/`](server/) directory contains a complete callback server setup:

- `index.php` : PHP callback handler (uses `system()` for real exploitation)

- `nginx.conf` : Example nginx config with `merge_slashes off` (required for the `//fonts.googleapis.com` URL to reach PHP intact)

- [NVD: CVE-2026-125812](

This tool is provided for authorized security testing and educational purposes only. Unauthorized access to computer systems is illegal. The author assumes no liability for misuse. See [SECURITY.md](SECURITY.md).

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

Extracted Entities

Companies (1)

CWE Weaknesses (1)

MITRE ATT&CK (1)

Platforms (1)