Security News & Alerts

CVE-2026-125350 Technical Analysis: A Use-After-Free Hiding in Chrome's XSLT

By Vince AntonioPublished 9 min read

This is the technical companion to our Chrome zero-day news post. Google labels CVE-2026-125350 "use after free in XML", but the bug is more specific than that: it is in XSLT, inside Chromium's bundled copy of the old libxslt library. This write-up shows where the bug lives, what Google's 9-line fix actually changed, why the engineers call it a stopgap, the version numbers that trip people up, and how to turn the feature off while you update.

A developer inspecting a browser version screen and source code on a large monitor

In plain English

  • The bug is a use-after-free in Chromium's XSLT engine (the libxslt library), reached when a web page runs a crafted stylesheet. Google confirmed it was exploited in the wild.
  • A pattern evaluation could re-enter itself and free a cached object twice. The fix re-reads the cached value after the evaluation instead of reusing a stale pointer.
  • Update to Chrome 157.0.8103.50 or later, then relaunch. Watch the version traps: some Chrome 158 builds have a higher number but no fix.
  • You can turn XSLT off with the XSLTEnabled policy while you roll out the update. Chrome 158 turns it off by default.

At a glance

Weakness
CWE-416 use-after-free (the commit calls it a double free) in libxslt
Score
CVSS 3.1 8.8. Impact is code execution inside the browser sandbox
Fixed
Chrome 157.0.8103.50 (9 Nov 2026); Edge 157.0.4341.46
CISA KEV
Added 10 November 2026

CVE-2026-125350 in one paragraph

CVE-2026-125350 is a Chrome vulnerability that Google shipped a fix for on 9 November 2026, warning that "an exploit for CVE-2026-125350 exists in the wild". Google's one-line description calls it "use after free in XML". The fix commit is more precise: the flaw is in XSLT, the stylesheet language browsers use to turn XML into HTML, and specifically in libxslt, an aging C library that Chromium bundles. A crafted stylesheet can make one part of the engine free a piece of memory twice. The practical impact, in Google's own words, is that a crafted page "allowed a remote attacker to execute arbitrary code inside the sandbox". That last phrase matters: this is a Chrome zero day, but on its own it runs code only inside Chrome's locked-down renderer, not on your whole machine.

Where the bug really lives: XSLT, not "XML"

XSLT runs whenever a page loads an XML document that points at an .xsl stylesheet, or when JavaScript calls XSLTProcessor. That includes XML loaded in an ad or an iframe, so no clicking is needed beyond opening a page. Chromium does this with its own copy of libxslt, a library Google itself describes as "a complex, aging codebase" prone to memory-safety flaws.

The specific function is xsltTestCompMatchDirect in pattern.c. It caches the result of evaluating a pattern, so repeated matches are fast. The flaw is a re-entrancy problem: the function reads the cached result, runs an evaluation, then frees what it read. But that evaluation can run more XSLT, which can call the same function again for the same cache slot and free and replace the cached object itself. When control returns to the first call, it is holding a pointer to memory that was already freed, and it frees it a second time.

In plain terms: two parts of the engine both think they own the same piece of memory, and both free it. Freeing memory twice is a classic way to corrupt a program's state, which a carefully built stylesheet can turn into attacker control. This is why "use after free" and "double free" bugs are among the most exploited bug classes in browsers.

What the fix changed

Google's fix is nine lines. It does not restructure anything; it simply re-reads the cache slot after the evaluation, so the code frees whatever is actually there now instead of the stale pointer it read earlier.

diffRe-read the cache slot after evaluation, so the stale pointer is never freed
/* libxslt/pattern.c, xsltTestCompMatchDirect(), the fix (excerpt) */
 if (nocache == 0) {
+    /* xmlXPathEval can re-enter this function for the same cache
+     * slot ... the nested call may free or replace the cached
+     * object, so re-read it instead of using the earlier value. */
+    list = (xmlXPathObjectPtr)
+        XSLT_RUNTIME_EXTRA_LST(ctxt, sel->lenExtra);
     if (list != NULL)
         xmlXPathFreeObject(list);
     list = newlist;

Chromium keeps this as a local patch so it survives future updates of the library, and shipped a regression test (a page that simply must not crash) to the shared web-platform-tests suite.

The shipped fix is a stopgap. A separate, still-open code change says it "attempts to fix the underlying bugs that were mitigated by the crash fix". The deeper problem is that different patterns can end up pointing at the same cache slot in the first place, which is what lets a nested evaluation clobber the outer one. The 9-line fix removes the memory-safety consequence; the aliasing itself is being addressed separately. Expect follow-up patches in this area.

As of 16 November 2026 the fix was not yet in the upstream libxslt project, only in Chromium's copy. Software that runs attacker-supplied XSLT through an unpatched libxslt could in theory reach the same code, but no source has shown that is exploitable outside Chrome, so we are not claiming it is.

How a renderer bug like this is used (and its limits)

We will not publish an exploitation recipe, and Google has released no details of the real-world attack: no actor, no targets, no indicators. What we can set out is the shape of the risk, which decides how urgently to patch.

  • Reach: just loading a page is enough. The XSLT runs automatically, and it can be delivered inside an ad or an iframe on an otherwise trusted site.
  • Impact on its own: code execution inside the sandboxed renderer process. Chrome's site isolation limits what data that process can touch, and the sandbox blocks direct access to your files and operating system.
  • What turns it into a full compromise: a second, separate bug to escape the sandbox. In-the-wild Chrome attacks have historically paired a renderer bug with a sandbox-escape bug, but Google has not said whether that happened here.

So the honest severity is: serious, exploited, patch now, but not by itself a remote takeover of the device. The browser sandbox is doing its job of raising the cost.

The version traps

Checking you are safe is not as simple as "is my version number higher". Two traps catch people out.

BuildLooks safe?Reality
Chrome 157.0.8103.50 and laterYesFixed. This is the baseline on Stable.
Chrome 156.0.8078.96 (Extended Stable)Lower numberFixed on the Extended Stable channel.
Chrome 158.0.8127.18 to .29Higher number than 157NOT fixed. Early 158 builds predate the backport; you need 158.0.8127.30 or later.
Opera 140.0.6074.17Chromium base looks like .39Fixed. Opera cherry-picked the fix onto an older base, so a scanner reading only the Chromium base misreports it.
Edge 157.0.4341.46 and laterYesFixed. Microsoft confirmed the in-the-wild exploit.

Brave (1.99.56) and Vivaldi (8.3 minor update 2) also shipped the fix. Electron apps, headless Chromium used in scrapers and CI, and other embedders carry their own copy of this code and need their own updates. The updated binary only takes effect after the browser is relaunched, so a machine that downloaded the update but was never restarted is still exposed.

Mitigation and detection

Patch and force a relaunch. Update to the fixed build and confirm it on chrome://version. In a managed fleet, the RelaunchNotification policy set to Required makes the new binary take effect.

Turn XSLT off while you roll out. The XSLTEnabled policy set to false removes this entire attack surface (Chrome 146 and later, Edge 147 and later). It is dynamic, so no reinstall is needed.

textDisable XSLT across a managed fleet
# Windows registry (managed policy)
HKLM\SOFTWARE\Policies\Google\Chrome\XSLTEnabled  = 0
HKLM\SOFTWARE\Policies\Microsoft\Edge\XSLTEnabled = 0
# Linux: a JSON policy file in /etc/opt/chrome/policies/managed/

The trade-off is that a few sites still use client-side XSLT (some RSS feed and sitemap views, and older enterprise apps), and those break. Chrome 158 turns XSLT off by default anyway from 17 November 2026, so organizations that re-enable it with XSLTEnabled = true to keep a legacy app working are deliberately keeping this surface open and should patch those machines first.

Detection. Google, Microsoft and CISA have published no indicators, so hunting is behavior-based:

  • Inventory first. Find browsers below the fixed builds, including the 158 and Opera traps, and processes still running an old build after a staged update.
  • Renderer crashes. Bursts of browser crashes, or crashes right after visiting an unfamiliar site, in the Crashpad report folder. A clean exploit may leave no crash, so absence is not proof.
  • Follow-on behavior. The browser spawning a shell, PowerShell, mshta or certutil, writing executables outside Downloads, or adding startup entries. These catch the step after a sandbox escape; a renderer-only compromise may show none of them, which is why patching beats detection here.

For a feel for why memory-safety bugs like this keep appearing in browsers, see our explainer on what a zero-day vulnerability is.

Sources

Topics:Exploit Write-upsCVE AlertsApplication Security

Need a hand with this?

Talk to a senior consultant. We reply within one business day with clear next steps and a scoped quote.

Prefer to just ask? Contact us and a consultant will reply.

Written by

Vince Antonio

Security writer and consultant, NextGarrison

Vince writes NextGarrison's security news, technical vulnerability write-ups and guides. He covers actively exploited flaws, penetration testing, SOC monitoring and getting ready for SOC 2, ISO 27001 and PCI DSS, in plain English with sources for every claim.

Want the next alert like this one?

New vulnerability alerts as soon as we publish them. Free, no sign-up, works in Feedly, Outlook, Slack and Teams.

Frequently Asked Questions

What is CVE-2026-125350 really about?

It is a use after free vulnerability (the commit calls it a double free) in Chromium's XSLT engine, the libxslt library. Google labels it "use after free in XML". A crafted stylesheet on a web page triggers it.

Does it give an attacker control of my computer?

Not on its own. Google says it runs code inside the browser sandbox. Breaking out to the whole device needs a second, separate sandbox-escape bug, which Google has not said was used.

My Chrome says 158 but a scanner flags it. Why?

Early Chrome 158 builds (158.0.8127.18 to .29) have a higher version number than the fixed 157 build but do not contain the fix. You need 158.0.8127.30 or later, or 157.0.8103.50.

Can I protect users before I finish updating?

Yes. Set the XSLTEnabled policy to false to turn XSLT off entirely. It applies without a reinstall. Chrome 158 disables XSLT by default from 17 November 2026.

Keep reading