FrankenPHP 1.14.1 landed on December 3, 2026, and for once the release is less about new features than about three security holes it closes. Two are rated high, and the update also pulls in a Mercure hub that fixes a dozen more. Anthropic’s OSS scanner found all of them. We took the two FrankenPHP bugs that reproduce cleanly and ran them against 1.14.0 and 1.14.1 in a lab. The difference is sharp enough that the update is worth scheduling for any affected setup right away.
FrankenPHP 1.14.1 at a glance: what the update changes
FrankenPHP is a PHP application server built straight into the Caddy web server. Instead of the classic PHP-FPM behind nginx, PHP runs in the same process, optionally in worker mode, where one script stays loaded and handles many requests in a row. That gives Symfony, Laravel or WordPress a real speed boost, but it also moves a slice of routing logic out of the framework and into the server config. Both of these bugs live right at that seam.
One thing up front: none of the three flaws hits a default install. Each needs a specific, deliberate configuration. If you run FrankenPHP with a fixed document root and no worker match rule, neither attack shown here reaches you. That said, the affected setups are common enough, tenant hosting being the obvious one.
The NUL byte flaw in the document root
The worst of the three (GHSA-h69m-723r-5w86, CVSS 7.4, high) hits setups where the root of php or php_server contains a placeholder filled from a request value. Tenant hosting is the textbook case, where the path is assembled per customer from a query parameter:
# Caddyfile - document root built from a request value (vulnerable)
:8599 {
root * /srv/docroot/{query.tenant}
php_server
}
The lever is an encoded NUL byte (%00) inside the placeholder value. Caddy expands the placeholder on every request and passes it on with symlink resolution forced off, so no syscall rejects the NUL byte. Up to that point FrankenPHP only checks the URL path for NUL, not the expanded root. When it builds SCRIPT_FILENAME, PHP makes the call: it reads the value as a C string, and everything past the NUL byte is dropped. Gone with it are the fixed root suffix and the .php extension the split was supposed to require.
In practice the attacker decides which file PHP opens. An uploaded image with embedded PHP gets executed; a config file sitting next to the tenant folders is simply printed. We staged both. The test directory held an avatar.gif that starts with GIF89a and then carries PHP tags, plus a secret.conf with a placeholder password.
# benign: the tenant's index.php
curl "http://host:8599/index.php?tenant=tenantA"
# -> tenant index ok
# attack 1: run an uploaded avatar.gif as PHP (code execution)
curl "http://host:8599/index.php?tenant=tenantA%2Favatar.gif%00"
# 1.14.0: GIF89aPWNED: arbitrary PHP from uploaded .gif [HTTP 200]
# 1.14.1: invalid request path [HTTP 400]
# attack 2: read secret.conf sitting next to the tenant folders
curl "http://host:8599/index.php?tenant=tenantA%2F..%2Fsecret.conf%00"
# 1.14.0: DB_PASSWORD=SECRET-TOKEN-12345 ... [HTTP 200]
# 1.14.1: invalid request path [HTTP 400]
Against FrankenPHP 1.14.0 the first attack returns the output of the embedded PHP, status 200. The second prints the contents of secret.conf. Depending on what the attacker can upload, that is either code execution or an arbitrary read of any readable file. Under 1.14.1 the server answers both requests with invalid request path and status 400, before PHP is ever involved. The patch now checks the NUL byte in the expanded root as well.
Worker match slips past Caddy path rules
The second flaw (GHSA-hg2f-3j3f-v3r3, CVSS 4.8, medium) hits apps that use a worker with a match rule and base their access control on PATH_INFO or PHP_SELF, while a Caddy path rule is meant to do the actual guarding. That mix is not rare in legacy apps.
# Caddyfile - worker with a match rule, admin guarded by a Caddy path rule
:8598 {
root * /srv/app
@protected path /admin*
respond @protected "403 blocked by Caddy path rule" 403
php_server {
worker {
file /srv/app/worker.php
match /*
}
}
}
The admin area is supposed to be sealed off by the Caddy rule on /admin*. The catch: request a path that carries a .php segment before the protected part, and the path rule no longer matches, yet the request still reaches the worker. In 1.14.0 splitCgiPath() takes SCRIPT_NAME from the worker file for a match-selected worker, but leaves PATH_INFO as whatever sits after the client’s .php segment. Nothing checks that the segment belongs to the worker at all.
# direct hit: Caddy blocks as intended
curl "http://host:8598/admin"
# -> 403 blocked by Caddy path rule [HTTP 403]
# bypass: x.php does not exist, yet the match rule still hands the request to the worker
curl "http://host:8598/x.php/admin"
# 1.14.0: ADMIN AREA reached (route authorizes on PATH_INFO) PATH_INFO=/admin [HTTP 200]
# 1.14.1: public page PATH_INFO='' [HTTP 200]
In 1.14.0 /x.php/admin reaches the worker with PATH_INFO=/admin, even though x.php does not exist. The app sees an admin path and lets it through. In 1.14.1 PATH_INFO is always empty for a match-routed request, and SCRIPT_NAME and PHP_SELF name the worker file. The detour goes nowhere.
Use-after-free in getenv with the JIT on
The third flaw is rated high too, but it does not demo as neatly from the outside. With the OPcache JIT enabled, the result of getenv() for a value set via env or putenv() could be freed while still in use, letting an attacker influence what later getenv() calls return. PHP ships with the JIT off, so this only reaches setups that turned it on deliberately. If that is you, do not sit on the update.
On top of that comes the refreshed Mercure hub (version 1.1.7), which closes 13 of its own holes, five rated high. Only instances that use the mercure directive are affected. Mercure delivers server-sent events for real-time updates, such as in-browser notifications.
Who is affected and what to do now
The verdict is clean. Three distinct groups are exposed: setups with a root built from request data, apps with a worker match plus access control via PATH_INFO, and installs with the JIT on or the Mercure directive active. If you use none of these, the default keeps you safe, but you should still upgrade, because 1.14.1 also fixes two nagging bugs: max_threads auto no longer derives the thread limit from host memory inside a container, and apache_request_headers() returns the Host header again over HTTP/1.1.
The direct route is the update to 1.14.1. If you cannot ship it right away, stop building the document root from request values, or reject requests whose placeholder source contains a %00. For the second flaw, move access control into the application instead of trusting Caddy path rules. That is the sturdier design anyway: authorization that hinges on how the server splits a path rests on shaky ground. If you are working through framework updates, we also have write-ups on the Django 6.1.4 security release, the TYPO3 flaw in GSB Core and the middleware bypass bugs in Fastify plugins and Livewire – all three show the same pattern of routing and authorization sitting in the wrong place.
The reassuring part is where the reports came from: all four FrankenPHP bugs surfaced through an automated scanner, not an exploited incident. So there is no fire, but a clear deadline. If you run one of these setups, roll out 1.14.1 in the next few days rather than waiting for the release after.



