The Patch Gap: How an Open-Weight AI Model Turned Firefox Security Fixes Into Working Exploits
Epoch AI showed GLM 5.3 could turn published but unshipped Firefox fixes into working attacks for about $1,000 each. Here is what that experiment proved, what it did not, and what businesses should do about it.
For most of the history of software security, a published fix was the end of a story. A bug was found, a patch was written, and users were told to update. In late October 2026, two documents published on the same day suggested that the most dangerous moment may now be the days in between: after a fix appears in public code but before it reaches the people who need it.
On 29 October, the research group Epoch AI published a report showing that GLM 5.3, an open-weight model released by Z.ai in August, could turn published-but-unshipped Firefox security fixes into working attacks against six recent Firefox releases, at a marginal cost of about $1,000 per version. The same day, Mozilla published a blog post explaining how Firefox is changing its release practices in response. Read together, they describe a security problem that is old in principle and new in practice, and one that reaches well beyond browsers.
This article looks at what the experiment actually showed, what it did not show, how defenders are responding, and what it means for businesses that depend on software they do not control.
What the "patch gap" is
Mozilla's post defines the patch gap as "the window in time between the appearance of a security fix in the code and the full deployment of that code to most users." It exists for practical reasons. As Mozilla explains, new browser versions need at least a few days of pre-release testing before they ship to hundreds of millions of people on very different hardware, and users do not always update the moment a new version is available.
Epoch's report splits the gap into two parts: fixes becoming public before they are released, and users continuing to run old software after an update. Its experiment focused on the first. For open-source projects like Firefox, upcoming changes are typically visible in public code branches long before a stable release. Beta versions, used by a smaller group of testers, are another route by which fixes become visible early.
None of this is new. Mozilla calls patch-gapping "a decades-old threat." What kept it manageable, according to both organisations, was cost. Reading through a stream of code changes, working out which ones quietly fix security bugs, and then building a reliable exploit against the unpatched version took scarce expertise and time. Because the resulting exploit only works until users update, many attackers had better uses for their effort.
What Epoch tested
Epoch set out to approximate what a relatively unsophisticated attacker with limited resources could achieve. The model was given a specific Firefox version and some basic tools, and asked to build a webpage that, when visited by a Firefox user, reads a local file and sends it to the attacker. The researchers chose that target because it reflects real damage: their report notes such an exploit could be used to read private documents, copy passwords stored in the browser, or steal authentication cookies.
Several design choices matter for reading the results fairly:
- The model had no internet access. To avoid affecting anyone else, the researchers supplied the public information they expected it would need directly in its environment.
- It was only given information available at the time of each target version's release, so it could not use knowledge of vulnerabilities discovered later.
- Beyond basic instructions to look at bug fixes not yet in the stable release, the model ran autonomously. According to Epoch, it identified upcoming security fixes, selected vulnerabilities and built the exploit chain on its own.
- The researchers accessed GLM 5.3 through its first-party API and third-party APIs, framing the task as a security exercise. They report that they triggered no safeguards or refusals from any provider.
The test machine ran Ubuntu 26.04 with default security settings and Firefox downloaded from the official release.
What it found
GLM 5.3 developed working attacks against all six Firefox releases between 17 September and 26 October 2026, listed in the report as 156.0, 156.0.1, 157.0, 157.0.1, 158.0 and 158.0.1. Visiting the model's webpage caused the browser to read a local file and send its contents to the attacker's server without further user action.
The report is candid that this was not trivial work for the model. In one attempt, GLM 5.3 used an upcoming fix to find a memory safety flaw and gained the ability to read and modify memory inside the browser, but Firefox's other protections still stopped it from reading the target file. Its final attacks combined the initial exploit with several additional stages to get past the remaining layers. The researchers describe the model diagnosing crashes, abandoning approaches that did not work and iterating until a simple page visit was enough. It was given up to 48 hours per attempt; the fastest success took 12.
Perhaps the most striking finding is that the model saw through an existing countermeasure. Security fixes in projects like Firefox are often written to look like ordinary improvements, without spelling out the underlying vulnerability. Epoch reports that GLM 5.3 was able to read the code and work out which changes were security patches anyway.
The economics
The cost figures are where the story shifts from "possible" to "practical." Epoch says its total research spend on Firefox exceeded $100,000 in API costs, including building a realistic offline environment and early testing. Once that harness existed and the model was pointed in the right direction, the marginal cost of compromising each new Firefox version was about $1,000 at API pricing, and the report suggests it could have been lower using subscription accounts.
The researchers add an uncomfortable point: an attacker who did not care about the risks of letting an autonomous agent loose online could skip the effort of building an offline sandbox and simply give the model internet access, making the setup cheaper and easier to replicate.
A cost of around $1,000 per target is small compared with the value of stolen credentials or access to a widely used browser. It also falls within reach of far more people than the specialist teams who historically worked this way.
What the experiment did not show
Responsible reading of this result requires attention to its limits, and Epoch is careful to spell them out.
The attacks needed a second, unpublished bug. In every compromise of recent Firefox releases, GLM 5.3 combined a patch-gap vulnerability with a separate, previously undisclosed vulnerability that it rediscovered on each attempt. According to the report's notes, the patch-gap bug gave code execution inside the web content process, and the unpublished bug let the attack bypass the sandbox that normally stops even a compromised renderer from reaching the file system. Epoch shared that bug with Mozilla, and it was patched in Firefox 159.0 on 27 October 2026. Epoch says it has not yet confirmed whether similar attacks succeed on 159.0, but suspects the fix makes them "at least substantially more difficult."
No arbitrary code execution. After succeeding with file reads, the researchers tried to achieve full arbitrary code execution and report no successes on recent Firefox releases as of writing.
Chrome held up, for now. Using the same harness and techniques, Epoch spent about another $100,000 in API costs trying to build an equivalent exploit against Google Chrome and had not succeeded at the time of writing. The researchers explicitly say they do not take this as strong evidence that Chrome is safe against better elicitation or more capable open-weight models.
Closed-source software was not tested. Epoch did not test GLM 5.3 against closed-source projects, though it argues the threat likely extends there (more on that below).
Why open weights change the picture
Epoch places its result against a wider backdrop. Its report says that since Anthropic announced Claude Mythos Preview in April 2026, it has been clear that frontier models can find vulnerabilities and craft complex exploits in real production software. The leading labs responded by giving some defenders early access to their strongest cyber capabilities while heavily restricting broader access, with the aim of letting defenders patch vulnerabilities before attackers can use them.
Mozilla's post shows that strategy working. It says the Firefox team has worked since February to find and fix bugs with early access to frontier models from Anthropic and OpenAI, and that it has shipped more than seven times as many security fixes as in the same period of 2025.
The patch gap is where that strategy leaks. Mozilla puts it plainly: the advantage of frontier access "can be undermined if attackers can indirectly learn about the findings of those frontier models." Every fix that a frontier model helps a defender write becomes, for a few days, a public pointer to a weakness in the version most users are still running. Mozilla says it has seen evidence that models like GLM 5.3 can exploit some of the fixes for bugs originally uncovered by more advanced models.
And unlike restricted frontier systems, open-weight models are available to anyone. Epoch's notes point out that even when developers add guardrails, publicly released weights can be modified into versions that comply with any request. The report also flags that Kimi K3.1 Pro, released through first-party API access on 23 October with weights planned for early November, was not part of its experiments, but that limited benchmark data suggests it may outperform GLM 5.3 on offensive cyber tasks.
Epoch is careful not to overclaim here. It notes that open models also help defenders, especially those without access to restricted frontier systems, and says it makes no claims about how open-weight models will affect the overall balance between attack and defence.
How Firefox is responding
Mozilla's post lists steps already taken to narrow the gap:
- Shipping faster. Firefox cut its release cycle in half earlier in 2026, so new builds ship every week. Epoch notes that Chrome has also begun shipping weekly updates.
- Holding back tests. Mozilla says GLM 5.3 is much less effective at patch-gapping when a regression test is not present, so it has gone back to keeping these tests confidential until after a fix ships.
- Commit scanning. All new commits to the Firefox codebase are scanned to catch newly introduced bugs before release.
The more interesting change is structural. Firefox uses layered sandboxing, so an attacker usually has to chain at least a renderer exploit with a sandbox escape. Mozilla plans to group classes of fixes so that their patch gaps do not overlap. If only one of the ingredients needed for a full compromise is ever exposed in the patch gap at a time, an attacker would need to find at least one completely new vulnerability on their own. That maps directly onto Epoch's finding that its successful attacks needed two bugs chained together, and onto Epoch's own advice that defenders "should avoid patching multiple vulnerabilities simultaneously if they can be chained together."
Mozilla is clear that this will take time to get right across its engineering processes, and it does not give a date.
Beyond browsers
Both organisations stress that browsers are the well-defended case. Mozilla writes that "much of the software that powers the internet has not had the luxury of these preparations, and is now more deeply exposed."
Epoch gives examples from the weeks before its report. It says patch-gap exploits targeted Chrome in September 2026, and that in the same month a vendor published patched builds of PHP more than six hours ahead of the coordinated release of fixes for two critical vulnerabilities. According to Epoch, those early patches could have contributed to thousands of exploit attempts before the public release, rising to millions immediately afterwards.
Keeping code private is not a complete answer. Mozilla notes that modern tooling is increasingly able to reverse-engineer source code from compiled programs, calling closed source "at best a speed bump." Epoch says Anthropic has demonstrated that Mythos can exploit the patch gap on Windows without its source code being public, though Epoch has not tested open-weight models on closed-source targets. Its greatest concern is software people update rarely, such as router firmware and phone operating systems, where the window of exposure can last far longer than a browser's.
What this means for businesses
Most organisations do not write browsers or operating systems. They run them, along with dozens of other products they do not control. The practical lessons from these two reports are mostly about the second half of the patch gap, the time between an update being available and actually being installed, which is the part a business can control.
- Treat "fixed upstream" as the start of a race, not the end. Epoch's central advice is that once a fix is visible in published code, defenders should assume attackers can and will use it against the current release. A critical browser or operating system update is now worth installing in days, not weeks.
- Turn on automatic updates wherever you can. Weekly browser releases only help if they reach your machines. Managed devices with enforced auto-update close the gap far more reliably than reminders.
- Audit the devices people forget. Routers, network storage, printers and old phones are exactly the slow-to-update software Epoch worries about. Know what you have, and replace hardware that no longer receives updates.
- Do not store secrets where a browser exploit can reach them. The demonstrated attack read files and could expose browser-stored passwords and cookies. A dedicated password manager, hardware security keys and short session lifetimes for sensitive accounts reduce what a single compromise can steal.
- If you publish software, look at your own patch gap. Small vendors and open-source maintainers face the same problem as Mozilla with far fewer resources. Shortening the time between a public fix and a release, holding back tests that reveal the bug, and avoiding releasing chainable fixes together are all steps from these reports that scale down.
The bigger picture
It would be easy to read this story as a simple case of AI making attackers stronger. The reports tell a more balanced and more interesting story. Mozilla says it is in a strong position precisely because frontier models helped it find and fix bugs at more than seven times its previous rate, and it argues that because the number of defects in software like Firefox is finite, increasingly capable models may eventually help find them all.
What changed in October 2026 is the timing. Defenders are now fixing bugs faster than ever, and every one of those fixes is briefly a signpost. Capabilities that were recently limited to tightly controlled frontier systems have, in at least this one demonstrated case, reached a model anyone can download, at a price per target that many attackers could afford.
The two documents agree on the shape of the response. The time between a fix being visible and being installed has to shrink, release processes have to be designed so that no single window exposes a complete attack chain, and the large body of software that has not had Firefox's years of preparation needs attention urgently. As Mozilla's post concludes, "the only path forward is to aggressively find and fix the bugs that have been hiding for years, now in plain sight."
For everyone else, the lesson is simpler and less glamorous: update quickly, update everything, and stop assuming that a fix existing somewhere means you are safe.