Chrome / Web

Chrome · XSLT · Chrome 158

Chrome 158 Removes XSLT on 17 November: Your XML Pages Will Show Raw Code — Check and Fix Them Now

First published 13 November 2026 · Updated on 13 November 2026 · Verified against Google’s “Removing XSLT for a more secure browser” (Chrome for Developers, 29 October 2025), the Chrome 152 release notes on Chrome Platform Status, Google’s Chrome Releases Early Stable Update of 4 November 2026, Microsoft 365 Message Center MC1509789, and WordPress’s developer reference for its sitemap stylesheet

Merroway Editorial · Verified against governing standards and vendor documentation.

The fast answer

Check first, fix second. Open your sitemap (usually /wp-sitemap.xml or /sitemap.xml) and any XML feed or portal page in Chrome Beta — XSLT is already switched off there — and look at what a visitor will see. Then search your site for <?xml-stylesheet type="text/xsl" and for XSLTProcessor in your code. If you find neither, you are done: most small-business sites only have the sitemap, and a sitemap that shows raw XML still works for search engines. If you do find XSLT, the permanent fix is to run the transform on your server and send the browser plain HTML. The quickest patch is Google’s XSLT polyfill — one line of script added to the XML file. If you need more time, Chrome’s origin trial keeps XSLT working on your site until 17 August 2027. Do not wait for 17 November: Chrome 158 already reached a small share of Windows users on 4 November, so a few of your visitors may be seeing raw code already.

Advertisements

What you are looking at, in plain words

XSLT is a language from 1999 for turning an XML document into something else — usually an HTML page a person can read. A website uses it by putting a line at the top of an XML file that says “display me with this stylesheet”, and the browser does the work: it reads the XML data, applies the rules in the stylesheet, and shows the result. WordPress’s built-in sitemap works this way — the file at /wp-sitemap.xml carries an XSL stylesheet that turns the list of pages into a neat table in the browser — and so do most SEO-plugin sitemaps, many RSS and Atom feeds, and older internal portals and web apps that build their pages from XML.

Google is removing that browser-side step because of the code that runs it. Chrome uses a library called libxslt, which Google describes as a complex, ageing C/C++ codebase, the kind of code that is prone to memory-safety flaws — and it cites two high-severity libxslt flaws, CVE-2025-7425 and CVE-2022-22834. The same libxslt code was behind the actively exploited Chrome flaw CVE-2026-125350, patched on 9 November 2026 — our companion guide, Chrome Zero-Day CVE-2026-125350: Update to 157.0.8103.50 Now — and Again to 157.0.8103.78 (11 Nov), covers that update. Google also measured how little XSLT is used: about 0.02% of page loads use it at all, and under 0.001% use the stylesheet line. Keeping a rarely used, hard-to-secure library in every browser was, in Google’s judgement, not worth the risk. XML itself is not being removed — only the transform step — and the same line with type="text/css" keeps working, because that applies ordinary CSS rather than XSLT.

What breaks, in practice: any page whose readable form depends on the browser running XSLT. A styled sitemap or feed shows raw XML tags instead of a table. A portal or app that builds its pages with XSLTProcessor loses the content that transform produced. What does not break: the XML files themselves, anything that reads them as data (search engines, feed readers, other software), plain XML pages with no stylesheet, and XML styled with CSS. Firefox and WebKit have also said they plan to remove XSLT, but Google gives no dates for them. Edge follows in December — see the timeline below.

Your XML file + its XSL stylesheet The data, and the rules that style it Chrome runs the transform (XSLT) The browser turns the XML into a readable page Visitor sees a styled page A table, a readable feed, a portal page From 17 November: the transform step is gone Visitor sees the raw XML — under Chrome’s “cannot be formatted as intended” notice
Drawn map — not a screenshot: how XSLT turns an XML file into a readable page, and what is left when Chrome 158 removes that step.

Step 0 — Find every page on your site that uses XSLT

  1. Open your sitemap in Chrome Beta. Go to yoursite.com/wp-sitemap.xml (or /sitemap.xml) in Chrome Beta, Dev or Canary. XSLT is already switched off by default in those channels, so what you see there is what your visitors will see from 17 November. If it shows raw XML tags, XSLT was styling it — that is the post-removal view, and the page is affected. If it still shows a neat table, something other than browser XSLT is styling it, and that page is fine.
  2. Do the same for every feed and XML page. Open each RSS or Atom feed, any XML report or document page, and any internal portal page that is built from XML, in the same Beta window. A page that changes from a readable layout to raw code is affected.
  3. Look at the top of the file. In Chrome, press Ctrl+U (Cmd+Option+U on a Mac) to view the page source. Near the top, look for a line starting <?xml-stylesheet type="text/xsl" — that line is the XSLT instruction. A line with type="text/css" instead is fine: CSS styling is not being removed.
  4. Search your code, not just your browser. Search your website’s templates, theme files, plugins and any JavaScript for xml-stylesheet and for XSLTProcessor. The stylesheet line catches XML files; XSLTProcessor catches web apps that transform XML in the page. Check what your plugins generate too — a sitemap from an SEO plugin carries the line even if you never wrote it.
  5. Read Chrome’s own warning. Since Chrome 143, Chrome shows a deprecation warning in DevTools when a page uses XSLT. Open DevTools (F12), open the Console tab, and load the page: the warning names the page. For a whole site, Google’s page also gives a Reporting API snippet that reports every XSLT use back to you — see Sources.
  6. If you run a company network, ask for the Legacy Technology Report. Google’s enterprise report collects deprecated-feature use across managed browsers and lists the affected pages for you. It is the fastest way to find XSLT across an internal portal estate.
  7. Write down the dates that matter. Chrome 158 reached a small share of Windows users on 4 November 2026 as Early Stable, so a few visitors may already see the breakage. Full Stable is 17 November 2026. The two escape routes — the origin trial and the enterprise policy — both end on 17 August 2027 with Chrome 176.
BrowserDateWhat happens
Chrome 1432 Dec 2025XSLT officially deprecated; console warnings begin
Chrome 1452 Dec 2025 (Canary)Canary, Dev and Beta begin disabling XSLT by default
Chrome 15225 Aug 2026Origin trial goes live — sites can keep XSLT past the removal
Chrome 15817 Nov 2026XSLT stops working on Stable, except origin-trial and enterprise-policy users
Chrome 17617 Aug 2027Origin trial and enterprise policy end; XSLT off for everyone
Edge 159Mid-Dec 2026Edge disables browser-native XSLT by default (MC1509789)
Edge 176Summer 2027Edge’s XSLTEnabled policy is removed

About this table: the Chrome rows are Google’s, from the Chrome for Developers deprecation page (29 October 2025). The Edge rows are Microsoft’s, from Microsoft 365 Message Center notice MC1509789 (15 October 2026), read through independent archives of the Message Center text — the Message Center itself needs a Microsoft 365 sign-in. Chrome moved to a two-week release cycle in September 2026, so the version numbers are higher than the 155/164 in Google’s original October 2025 announcement; the dates are unchanged.

The fixes, in order

  1. Triage: sitemap-only, or a real app? If the only XSLT on your site is the sitemap (and feeds), decide whether the human view matters. Search engines read the raw XML and are unaffected, so a sitemap that shows raw code is ugly, not broken. You can leave it as raw XML, or restyle it — see the next step. If a portal, report page or app depends on XSLT to show its content at all, that is the urgent work: those pages lose their content, not just their looks.
  2. Restyle a sitemap or feed with CSS, not XSLT. The processing instruction with type="text/css" keeps working — Google says so explicitly. Replace the XSL stylesheet with a CSS stylesheet and the page keeps a readable layout without any XSLT. WordPress’s own developers have already made this move: WordPress plans to drop the XSL stylesheet from its built-in sitemap in WordPress 7.2, due 8 December 2026. If you run WordPress, update to 7.2 when it lands rather than hand-editing the sitemap; if you use an SEO plugin, check whether its next update does the same, and ask the plugin’s maker if it does not.
  3. The permanent fix: move the transform to the server. Run the XSLT transformation on your server and send the browser the finished HTML, instead of sending XML and asking every visitor’s browser to transform it. The transform itself does not change — the same stylesheet, the same XML, the same result — only where it runs. This is the fix Google recommends first, and it is the only one that works in every browser, including Firefox and Safari when they remove XSLT too.
  4. The quickest patch: add Google’s XSLT polyfill. If you cannot move the transform yet, add one line inside the XML document, as a direct child of the root element — the snippet is below. The polyfill is Google’s own: it runs the same libxslt code compiled to WebAssembly, in the browser’s JavaScript sandbox, and it replaces the XSLTProcessor class so existing JavaScript keeps working as-is. It is a patch, not a migration — test it on your real pages, and do not treat it as permanent.
  5. Rebuild XSLTProcessor apps as JSON + JavaScript. If your site transforms XML in the page with XSLTProcessor, the durable replacement is the one Google names: serve JSON instead of XML and render it with JavaScript (the Fetch API plus your framework of choice). Client-side JavaScript XSLT libraries are the other route Google names — Saxonica’s is the largest, with full XSLT 3.0 support — if rewriting the rendering is too big a job right now. Either way, the browser no longer does the transform for you.
  6. Buy time — only if you need it — with the origin trial or the enterprise policy. A public site can join Chrome’s origin trial, which keeps native XSLT working on your site past 17 November. A company can set the XSLTEnabled enterprise policy to keep XSLT on in its managed browsers — that covers staff on company machines, not the public. Both end on 17 August 2027 with Chrome 176, so either one is nine months of breathing room, not a fix. Enrol or set the policy only alongside a migration plan with a date on it.
  7. If you cannot change the source, use the extension — for your own browsers only. Some sources cannot be changed: an embedded device that serves its readings as styled XML, or a vendor’s portal. For those, Google points to a Chrome extension that applies the same polyfill to every raw XML page with an XSLT instruction, so your own browsers keep working without touching the device. That fixes your screens, not your visitors’ — a public page still needs a real fix, and a vendor portal still needs a ticket to the vendor.

Add this line, exactly as Google prints it, inside the XML document as a direct child of the root element:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="demo.xsl"?>
<ROOT>
<script src="xslt-polyfill.min.js"
   xmlns="http://www.w3.org/1999/xhtml"></script>
...content...

The script loads the polyfill, which detects the XML document and its XSLT instruction and applies the transform itself. Get the file from the polyfill’s GitHub repository (linked in Sources) and host it on your own site — do not hotlink a copy you have not checked.

Do not “fix” the sitemap by deleting it or blocking it. The sitemap file is fine — search engines read it exactly as before, and deleting it hurts your search visibility for no reason. The thing that changed is only how the file looks when a person opens it in Chrome. The second mistake is treating the origin trial or the enterprise policy as the fix: both end on 17 August 2027, and the policy only covers browsers your organisation manages — it does nothing for a single visitor on their own computer.

Prove it worked

Open each affected page in Chrome Beta — or, after 17 November, in ordinary Chrome — and look at it as a visitor would. A sitemap or feed you restyled with CSS shows its table again, with no warning banner. A page you moved to server-side HTML loads as a normal page, with no raw XML anywhere. A page using the polyfill shows its styled content, and the DevTools console shows no XSLT deprecation warning. Then check the machine side: fetch the sitemap URL and confirm the XML itself is unchanged — the same URLs, the same dates — so nothing about search has moved. Only when the page looks right in the browser and the underlying XML is untouched is the job done. Keep the list you made in Step 0 and tick each page off against it.

Still not working? Work this ladder in order

  1. The polyfill is added but the page still shows raw XML. Check the script line is a direct child of the root element — Google’s example puts it inside the root, not before it — and that the xslt-polyfill.min.js file actually loads: open DevTools, go to the Network tab, reload, and look for a failed request for the file. A 404 there is the whole problem.
  2. The server-side fix is live but visitors still see raw XML. You may still be serving the old XML file: check the URL serves HTML now, not XML, and clear any cache or CDN in front of it. An old cached copy of the XML page will keep showing raw code until the cache clears.
  3. The origin trial is enrolled but XSLT still stops. The trial token must match your site’s origin exactly, and it only covers the site it was issued for. Re-check the token on the page and the origin it names; a token for the wrong subdomain does nothing.
  4. The enterprise policy is set but staff browsers still show raw XML. The policy only applies to managed browsers — a personal laptop or a browser outside your management does not get it. Check chrome://policy on an affected machine and confirm XSLTEnabled is listed; if it is not, the policy never reached that machine.
  5. Edge still shows raw XML after you fixed Chrome. Edge makes the same change a month later, in Edge 159 from mid-December 2026. The same fixes apply — server-side HTML, CSS restyle, or the polyfill — so fix once for both browsers, and test in Edge Beta before December.
  6. A vendor portal or device page is still broken and you cannot change it. Use the extension on your own browsers as the stopgap, and raise a ticket with the vendor: tell them Chrome 158 removed XSLT on 17 November 2026 and Edge 159 follows in December, and ask for their migration date. Keep the ticket number with your Step 0 list.
  7. None of these steps fixes it. Take the page URL, what you see (raw XML, banner, or missing content), and the Chrome version from chrome://version to Google’s Chrome for Developers deprecation page (linked in Sources) — it links to the place to report a Chrome bug with this removal. That is the next step, not a different vendor’s forum thread.

Mistakes that make it worse

  • Deleting the sitemap or blocking it because it “looks broken” — search engines were never using the styled view.
  • Restyling with a different XSLT stylesheet — the browser no longer runs any XSLT at all.
  • Treating the origin trial or the enterprise policy as permanent — both end 17 August 2027.
  • Setting the enterprise policy and assuming the public is covered — it only covers browsers your organisation manages.
  • Telling visitors to install the extension as the fix for a public site — it only fixes the browser it is installed in.
  • Assuming “only 0.02% of pages use XSLT” means yours is safe — check Step 0 instead of guessing.
  • Waiting for Firefox or Safari to keep XSLT alive — both have said they plan to remove it too.
Advertisements

Frequently asked questions

Will my sitemap stop working for Google on 17 November?

No. Google and other search engines read the raw XML file, never the styled view the browser shows a person. The file itself does not change, and nothing about crawling changes. What changes is only what a human sees when they open the sitemap in Chrome: raw XML tags instead of a table.

What exactly will my visitors see?

On a page that uses the xml-stylesheet line, Chrome shows the raw XML — the tags and text of the file — under a notice that reads: “This document cannot be formatted as intended. It uses XSLT, which the browser does not support.” The “This site uses XSLT…” banner is the earlier warning: Chrome shows it on the styled page while XSLT still runs, before 17 November. On a page or app built on XSLTProcessor, the content that transform produced simply never appears.

I don't think my site has any XML pages. Do I need to do anything?

Spend the ten minutes on Step 0. Most small-business sites have exactly one XSLT page — the sitemap — and for that page the answer is “leave it, it still works for search”. But a feed, a report page or an old portal can hide in a corner of a site for years, and guessing is how it gets missed.

Can I just join the origin trial and forget about it?

No. The origin trial ends on 17 August 2027 with Chrome 176, and the enterprise policy ends the same day. Either one buys you about nine months to migrate — it is not a permanent exemption. Put a migration date on the calendar when you enrol, or the same breakage comes back in August 2027.

What about Microsoft Edge?

Edge makes the same change in Edge 159, rolling out from mid-December 2026 (Microsoft 365 Message Center notice MC1509789). Its temporary XSLTEnabled policy is removed in Edge 176 in summer 2027. Fix once for both browsers — the server-side fix, the CSS restyle and the polyfill all work in Edge too.

Is this connected to the Chrome zero-day CVE-2026-125350?

Yes — the same libxslt code. CVE-2026-125350 was a use-after-free flaw in Chrome's XML/XSLT handling that attackers were already using; Google patched it on 9 November 2026 in Chrome 157.0.8103.50. That flaw is the sharp end of the same security argument behind removing XSLT. Our companion guide tells you how to update Chrome; this guide tells you how to fix the pages that break when you do.

Does this affect my RSS feed or my sitemap's readers?

No. RSS readers and search engines parse the XML file directly and never used the browser's styled view. Only a person opening the feed or sitemap in Chrome sees a difference — and for them the fix is a CSS restyle or the polyfill.

Sources

Google Chrome for Developers — Removing XSLT for a more secure browser (29 October 2025; removal in Chrome 158 on 17 November 2026; the two removed APIs; the timeline to Chrome 176 on 17 August 2027; libxslt security reason with CVE-2025-7425 and CVE-2022-22834; usage ~0.02% of page loads; migration paths — server-side transform, JSON + JavaScript, Saxonica, the polyfill, the extension; Reporting API detection and the Legacy Technology Report; XML + CSS not removed) · Chrome Platform Status — Chrome 152 Release Notes (origin-trial entry “Deprecate and remove XSLT”: libxslt unmaintained for ~6 months of 2025; “From Chrome 158, XSLT will stop functioning on Stable releases”) · Google Chrome Releases — Chrome Releases: 2026 (Early Stable Update for Desktop, 4 November 2026: Stable updated to 158.0.8127.18/.19 for Windows as an early stable release to a small percentage of users) · Microsoft 365 Message Center — MC1509789: Microsoft Edge: Browser-native XSLT will be disabled by default (15 October 2026; Edge 159 Stable from mid-December 2026; XSLTEnabled policy removed in Edge 176, summer 2027; read through the Message Center archive — the Message Center itself needs a Microsoft 365 sign-in) · WordPress Developer Reference — WP_Sitemaps_Stylesheet::get_sitemap_stylesheet() (WordPress’s built-in sitemap returns an XSL stylesheet; since WordPress 5.5.0) · XSLT polyfill — mfreed7/xslt_polyfill on GitHub (Google’s polyfill; WASM-based replacement for XSLTProcessor) and mfreed7/xslt_extension (the Chrome extension that injects it) · Companion guide: Chrome Zero-Day CVE-2026-125350: Update to 157.0.8103.50 Now — and Again to 157.0.8103.78 (11 Nov) (the exploited libxslt flaw, patched 9 November 2026).

Verification note: the removal date and version (Chrome 158, 17 November 2026), the two removed APIs, the full timeline to Chrome 176 (17 August 2027), the libxslt security reason with CVE-2025-7425 and CVE-2022-22834, the usage figures (~0.02% of page loads; under 0.001% for processing instructions), the migration paths, the Reporting API detection snippet and the Legacy Technology Report were checked on 13 November 2026 against the live Google Chrome for Developers page “Removing XSLT for a more secure browser” (29 October 2025), read in full. The Chrome 152 release notes on Chrome Platform Status, read in full the same day, confirm the libxslt maintenance gap and that XSLT stops functioning on Stable from Chrome 158. The 4 November 2026 Early Stable date and builds (158.0.8127.18/.19, small percentage of Windows users) were checked against Google’s Chrome Releases Early Stable Update of 4 November 2026. Three claims rest on narrower evidence and are fenced as such in the guide: the Edge dates come from Microsoft 365 Message Center notice MC1509789 as quoted verbatim in independent archives of the Message Center text (the Message Center itself needs a Microsoft 365 sign-in); the WordPress 7.2 date rests on third-party reporting of the WordPress core change; and the Early Stable post does not say whether XSLT was already off in those builds, so the guide treats 4 November as the first possible breakage, not a confirmed one. The CVE-2026-125350 link rests on companion guide 244’s live verification of the 9 November 2026 Chrome Releases post and the NVD entry. Double-verification on 13 November 2026 corrected the banner wording: the “This site uses XSLT…” banner is the warning shown on the styled page while XSLT still runs; after removal Chrome shows the raw XML under the notice “This document cannot be formatted as intended. It uses XSLT, which the browser does not support.” — as shown in Google’s own screenshot on the deprecation page and confirmed by independent renders with XSLT disabled.