Skip to main content

FrankenPHP 1.13.5

Release Date: November 5, 2026

FrankenPHP 1.13.5 shipped on November 5, 2026, and it is the kind of release that changes how you read the project's history. A month after 1.13.0 landed, the fifth patch of the line closes 17 security advisories in a single pass, upgrades the embedded Caddy server to 2.11.9 and moves Mercure to 1.1.6.

Remember when a FrankenPHP release was mostly about features?

When 1.12.7 arrived on August 7, 2026, the story was familiar: a few correctness fixes in classic mode, a metrics gauge that no longer grew without bound, quieter debug logs. The 1.13.0 release in early October still read like a feature milestone, bringing Slowloris protection and the url_pattern matcher through Caddy 2.11.7, plus the stable Mercure 1.0 protocol and safe configuration reloads.

Then the advisories started arriving faster than the changelogs could absorb them. 1.13.1 cleaned up regressions from 1.13.0. 1.13.2 shipped images patched for PHP2Shell (CVE-2026-109618 and CVE-2026-109619) with four FrankenPHP advisories of its own. 1.13.3 fixed worker lookup on symlinked document roots. 1.13.4 closed seven more holes in worker mode. 1.13.5 closes seventeen. The maintainers are blunt about the cause: AI-powered scanners now report vulnerabilities faster than a small team can reproduce, fix and disclose them, and this release alone accounts for seventeen advisories.

The one that should make you upgrade today

The highest severity issue affects the default php_server directive. A file whose name did not end in a split extension could be executed as PHP, for example /uploads/photos.php.php/avatar.jpg. Any application that lets users upload files under the document root, which is a very common Laravel and Symfony pattern, was exposed to remote code execution through a crafted filename. The fix is tracked as GHSA-j99q-3wr8-xj43.

Default configuration problems, one by one

Several of the remaining issues were reachable without any custom Caddyfile work:

  • Open redirect on directories: the trailing-slash redirect echoed the raw request path, so //attacker.example/..%2fblog sent visitors to another host. The redirect is now relative, matching Caddy's php_fastcgi (GHSA-jvmv-5538-pqpg).
  • HTTP/2 Host spoofing: a host header field sent alongside :authority could set $_SERVER['HTTP_HOST'] to a value Caddy never routed or access-checked (GHSA-2725-rh2w-9j9w).
  • Slow request bodies: request_body_timeout did not actually stop slow bodies, so an unauthenticated client could park one slow connection per PHP thread and block the whole pool. Caddy 2.11.8 and later fix it (GHSA-j45x-h238-h4xx).
  • Repeated startup failures: a request failing to start on a regular thread, for instance by sending more parameters than max_input_vars allows, segfaulted the process (GHSA-5359-vg53-5464).
  • Negative exit statuses: die(-1) made FrankenPHP panic and stop serving (GHSA-q6vv-3p75-53wr).
  • Caddy rule bypass: dot segments and encoded slashes after a script path, such as /admin/tool.php/../../missing.php, could run a file that a path matcher was meant to deny. The same check now covers backslashes on Windows (GHSA-2x4j-r638-wxff).
  • Source disclosure and PATH_INFO probing: a worker match rule could expose script sources behind extra split extensions, and functions such as getlastmod() let clients test whether files exist and when they changed.

Worker mode was the other weak spot

The most uncomfortable worker-mode fix is GHSA-8qcf-v46r-g2mc: destructors for objects left over from a previous request, including session objects, ran while the next client's output was active. Output and cookies could therefore reach the wrong client. Worker mode also had a named-route problem where a php_server or php directive inside a Caddy named route could run with the root, env values and workers of a different site, plus an incomplete fix for embedded app directories that were deleted during reloads while the server kept serving from them.

A breaking change hiding inside a security patch

Security patches usually leave behavior alone. This one does not. Between requests, FrankenPHP now resets only the state that was built from the HTTP request: superglobals except $_ENV, the request body, response headers and output, the session and the URL rewriter. Everything else persists the way userland state does, which means strtok(), http_get_last_response_headers(), error_get_last() and libxml errors carry over from the previous request again. If your workers assumed a clean slate, call error_clear_last(), libxml_clear_errors() or http_clear_last_response_headers() yourself.

Fixes worth knowing about

  • Requests larger than Caddy's request_body max_size now return 413 instead of handing a truncated body to PHP.
  • An unopenable script returns 404 No input file specified. like php-fpm, rather than a 200 with a fatal error inside it.
  • Persistent resources such as PDO::ATTR_PERSISTENT connections are destroyed when a PHP thread exits, fixing a leak on PHP 8.4 and later that eventually made database servers refuse new connections.
  • Custom Go extensions stay registered after restarts triggered by the file watcher, worker restarts or config reloads.
  • $_SERVER['SERVER_ADDR'] is finally populated with the address that accepted the connection, matching nginx, Apache and Caddy's FastCGI transport.
  • A memory leak reported by OSS-Fuzz in cached HTTP method strings is gone, and worker warnings raised while parsing a request no longer reach the previous request's error handler.

Performance kept moving too

Three small internal changes came with the patch. Already rooted request paths are no longer copied when computing SCRIPT_FILENAME, uncommon header names are converted in a single pass and allocation, and response headers are split with a byte search instead of a generic routine. None of these are headline numbers, but they sit on the hot path of every request.

Upgrading

FrankenPHP 1.13.5 is a drop-in replacement for 1.13.x deployments: no configuration changes are required, and if your worker code relies on a clean state between requests you should audit it against the breaking change above. Docker images and static binaries for 1.13.5 are published with the GitHub release, and the bundled Caddy 2.11.9 brings its own security fixes on top of the list above.

Most of the vulnerabilities were found by Anthropic's OSS Scanner, a detail that explains the shape of this release. If you run FrankenPHP in front of anything user-facing, treat 1.13.5 as mandatory rather than optional.

Other Versions

We use cookies for ads and analytics.