ConicPlex

Start Your Project

A laptop glowing amber on a desk at night with a city skyline and light trails visible through the window, evoking a distributed network, with a keycard resting nearby

On this Page

Cloudflare Discloses a Spectre Attack That Could Leak JWTs From Workers

Cloudflare disclosed a Spectre-class attack that leaked JWTs from co-located Workers at 12 bits a second, already mitigated through three isolation layers before the writeup went public.

Sameer Malek

August 24, 2026

Cloudflare disclosed on August 19 that its own security researchers had pulled off a working Spectre-class attack against Cloudflare Workers, extracting a live JSON Web Token from a co-located Worker at up to 12 bits per second with better than 99% accuracy. The attack ran on Cloudflare’s real production infrastructure, not a lab simulation. Cloudflare says it was already mitigated before the writeup went public, through three separate isolation layers rolled out over the past year, and found no evidence it had ever been used in the wild.

How the attack actually worked

Spectre attacks exploit speculative execution, the trick modern CPUs use to guess ahead at what code will run next and roll back if they guessed wrong. The rollback is supposed to be invisible, but it leaves faint timing traces in the CPU cache. Researchers have known since 2018 that those traces can leak data across process boundaries if you can measure them precisely enough.

What made this version notable is how the researchers solved the “precisely enough” problem inside a serverless platform, where a Worker only gets to run for a short burst before Cloudflare tears it down. They used a type-confusion gadget to coax a Worker into reading a 64-bit pointer it shouldn’t have access to, amplified the resulting cache timing differences using a technique targeting the CPU’s PLRU cache replacement policy, and kept their own attack Worker alive far longer than normal by holding a WebSocket connection open through a Durable Object, resetting the runtime’s CPU limits along the way. That combination let them measure timing differences down to sub-millisecond precision and reconstruct a JWT byte by byte from a neighboring, unrelated Worker sharing the same process.

What Cloudflare already fixed

Cloudflare’s response predates the disclosure. Dynamic Process Isolation now flags long-lived, I/O-heavy executions as a security signal instead of only reacting after something suspicious happens. The V8 Sandbox strips raw 64-bit pointers out of large heap regions, which specifically breaks the type-confusion gadget this attack depended on. And Memory Protection Keys, deployed since September 2025, put each isolate’s heap behind a hardware-enforced boundary so even code running in the same process can’t reach across it. Cloudflare states plainly that the attack is already mitigated in production and that no customer action is required.

Why it’s still worth knowing about

Nobody running an app on Cloudflare Workers needs to change anything because of this specific research. But it’s a useful reminder for any team building APIs on shared, multi-tenant serverless infrastructure: process isolation from the platform vendor is one layer of defense, not the whole picture. Short-lived tokens with tight scopes limit the damage if a side channel like this one ever does get exploited before a vendor patches it, and it’s a reasonable thing to check for in any web application build that leans on JWTs for auth. Cloudflare’s full technical writeup and the companion research paper are worth a read if you want the underlying mechanics, not just the summary.

Sources

Sameer Malek is a Senior Full Stack Developer at ConicPlex, working across the stack on projects that don’t fit neatly into one platform or framework. He’s often the person weighing a genuine platform or architecture decision rather than defending one side of it, since his work regularly crosses between WordPress, custom builds, and everything in between. He writes here about the comparisons and tradeoffs that come up when there’s more than one reasonable way to build something.

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading

Plugins

Flat illustration of a size chart grid with a tape measure and clothing tag, representing WooCommerce size chart plugins

How to Add a Size Chart to a WooCommerce Product Page (4 Plugins Compared)

Four real WooCommerce plugins add a size chart to a product page: Sizor, Product Size Charts Plugin for WooCommerce, WPC…

Sajil Memon

September 17, 2026

News & Updates

A server rack in a data center glows amber in warning next to a broken padlock, symbolizing the VMware vCenter ransomware exploitation of CVE-2026-59310

Ransomware Gangs Exploit Critical VMware vCenter Flaw (CVE-2026-59310)

CISA confirms ransomware gangs are exploiting CVE-2026-59310, a critical VMware vCenter flaw rated CVSS 9.8. Here’s what’s affected and how…

Sameer Malek

September 16, 2026

Plugins

Illustration of a breadcrumb navigation trail shown as connected chip shapes with arrow separators, representing WordPress breadcrumb plugins

How to Add Breadcrumbs to WordPress without an SEO Plugin (4 Plugins Compared)

Four real WordPress plugins add breadcrumbs and, in most cases, schema markup without installing a full SEO plugin: Breadcrumb NavXT,…

Husen Memon

September 16, 2026

WhatsApp
Husen Memon
Husen Memon
Typically replies instant