Under the hood
Security updates for Laravel without rebuilding the image
How Brewless puts every fixed CVE in its images, from PHP to OpenSSL and FrankenPHP, under a live Laravel release by itself, without a new build.
In this post
When PHP published its security release on 19 November 2026, the patched PHP reached Brewless's images and applications the same evening. That evening still had steps done by hand: building the images, taking their new digests, deploying every application.
PHP is the vulnerability everyone hears about. Most CVEs in a container are quieter: a library from Debian such as OpenSSL or libxml2, or the Go standard library that FrankenPHP and Caddy are built with. They need the same work, and they come far more often.
Since 24 November 2026 that work happens by itself, for all of them. This post shows what Brewless does when one of its images gets a fix, why it does not rebuild your application for it, and what stays yours to do.
What is a CVE, and where are they in a Laravel container?
A CVE is the public number a known security vulnerability gets, such as CVE-2026-86144. Scanners compare the packages in an image with the CVE lists of Debian, Go, npm and others, and tell you which known vulnerabilities are in it and which version fixes them.
A Brewless image has two parts: your application on top, and Brewless's public base image underneath. Brewless takes care of everything underneath:
| Layer | What is in it | Example of a fix |
|---|---|---|
| PHP and its extensions | PHP, redis, intl, gd and the rest | PHP 8.4.28 for a remote code execution |
| Debian | the system libraries PHP and its extensions use | libxml2, OpenSSL, curl |
| FrankenPHP and Caddy | the web server, written in Go | the Go standard library, golang.org/x/net |
| The realtime image | Reverb, for applications that use it | its Composer packages |
On the night of 25 November 2026 a round went out for fixes in libxml2, the Go standard library, golang.org/x/net and two npm packages, without a new PHP release. Nobody had to read the advisories.
How does Brewless patch a live Laravel release without a rebuild?
It takes the application layer of the image that is live and puts it on the new base image. Nothing is built: no composer install, no npm run build, no new commit. The result is a new release of the same commit on the patched runtime, and it goes live the way a rollback does, release commands included.
That works because a fix underneath changes the layers underneath, not yours.
| A new deploy | A security update | |
|---|---|---|
| Commit | whatever is on the branch | the commit that is live |
| Build | Composer, npm and assets | none |
Variables and brewless.yml |
as they are now | as they were at the live release |
| Release commands | run | run (a migrate finds nothing to do) |
| Edge | emptied | kept: the pages did not change |
The new image gets the tag a deploy of that commit would give it now, so a deploy afterwards finds it ready and builds nothing. The image your application is built with gets the same fixes, for the next build.
Where does the watch run?
In GitHub Actions, in the public brewless/images repository, every hour. It does two things:
- It compares the PHP releases in FrankenPHP's and PHP's own images with the ones in Brewless's images.
- It scans every published image with Trivy for CRITICAL and HIGH CVEs that have a fix.
When either finds something, the workflow builds and publishes new images and tells Brewless through a signed webhook. A CVE without a fix yet only goes to the admin panel; there is nothing to roll out until there is a fix.
Brewless does not take the webhook's word for it. It reads the new digests and PHP releases from the registry itself, never moves an image back to an older PHP release, and opens a round only for a newer PHP release or a fixed vulnerability. A rebuild that fixes nothing rolls nothing out.
Note
The watch runs outside Brewless on purpose: the comparing and scanning happen in GitHub Actions, so they wake none of your containers. Brewless only starts it. GitHub starts an hourly schedule of a workflow far less often than every hour, so Brewless asks GitHub for each run, in the tick its own worker already has once an hour.
In which order do the environments go?
One application at a time, with production last. Within an application the environments go one after the other: staging or test first, then production once that one runs the new images. When a release fails, the release before it stays live and the environments after it in that application are left alone.
The first real round ran on 24 November 2026. The new images were published at 18:57. Brewless's own test environment was live on them at 19:04, and Brewless's production followed at 19:11, after test, without anyone starting it. On a small Laravel application the release took about three minutes, half of it putting the layer on the new base image.
What stays yours to do?
Your own dependencies. A security update of the images changes what your application runs on, not what it is made of: the packages in composer.lock and package-lock.json stay exactly as they were. composer audit and npm audit still have something to say, and a fix there comes with your next deploy.
Once every environment of your organisation is done, the owners and administrators get one mail. It lists the vulnerabilities fixed per component and any new PHP releases, the environments that run the update now, and the ones that need you, with what to do.
Can you switch it off?
Yes, per environment. It is on for every environment, the free plan included. To deploy security updates yourself, switch it off in brewless.yml:
brewless.ymlenvironments:
production:
runtime_updates: false
Or untick Security updates by itself on the Deployments page of the environment in the console. When brewless.yml sets it, the file goes first. An environment that has it off still gets a line in the mail, and a deploy brings the update.
The details are in the documentation on security updates.
Frequently asked questions
What is a CVE?
A CVE (Common Vulnerabilities and Exposures) is the public number a known security vulnerability gets, such as CVE-2026-86144. Scanners such as Trivy compare the packages in an image with the CVE lists of Debian, Go, npm and others, and report which known vulnerabilities are in it and in which version they are fixed.
Which vulnerabilities does Brewless fix by itself?
Every CRITICAL or HIGH CVE with a fix in the images under your application. That is PHP itself and its extensions, the Debian libraries in the base image such as OpenSSL, curl and libxml2, the Go code in FrankenPHP and Caddy, and the packages in the realtime image. Fixes in the build image reach your application with its next build.
Does Brewless rebuild my Laravel app for a security fix?
No. Brewless takes the application layer of the image that is live, unchanged, and puts it on the new base image through the registry. The same commit goes live again on the patched runtime, with the release commands running first.
Does Brewless also update my Composer and npm packages?
No. Those are part of your application and stay exactly as your lock files say. composer audit and npm audit still have something to say, and a fix there comes with your next deploy.
In which order do my environments get the update?
One application at a time, environment after environment, with production last. When a release fails, the release before it stays live and the environments after it in that application are left alone until you deploy them.
Can I switch automatic security updates off?
Yes. Set runtime_updates to false for an environment in brewless.yml, or untick Security updates by itself on the Deployments page of the environment in the console. The environment still gets a line in the mail, and your next deploy brings the update.
Who gets the mail about a security update?
The owners and administrators of the organisation, once every environment in it is done. The mail lists the fixed vulnerabilities per component, any new PHP releases, the environments that run the update now and the ones that need you.