Can a CDN really leak your private account page to a stranger?
Yes. Web cache deception tricks a CDN, reverse proxy, or load balancer into storing a logged-in user's private page under a URL that looks like a static file, then serves that cached copy to anyone who requests the same URL — no authentication, no exploit, just a mismatch between how the cache and the origin server read the same request.
I've audited caching layers on client fintech and SaaS projects where this exact class of bug was sitting in production for months, quietly caching account pages because nobody tested what happens when you append .css to an authenticated URL. It's one of those facts that sounds too simple to be real, which is exactly why it keeps working.
What web cache deception actually is
The attack was first documented by security researcher Omer Gil in 2017, when he found that appending a nonexistent file like attack.css to a PayPal account URL caused the cache to store the full account page — balance, transaction data, email, and partial card digits — under that static-looking path. PayPal paid him $3,000 and fixed it, but the underlying mechanism never went away.
PortSwigger's Web Security Academy defines it cleanly: the cache misinterprets an ambiguous request for sensitive content as a request for a static resource, stores the response, and then serves that stored copy to the next person who requests the identical URL. PortSwigger is explicit that this is distinct from cache poisoning — poisoning injects malicious content into a shared cache entry, deception tricks the cache into storing content that was never meant to be shared at all.
The two conditions that make it possible
- The origin is path-tolerant. A route like
/account/settings still returns the same authenticated, personalized response even when you tack on /anything.css, because the backend framework ignores the trailing segment.
- The cache is extension-greedy. The caching layer decides to store a response because the URL ends in
.css, .js, .png, or similar — often ignoring the origin's actual Cache-Control headers entirely.
When both are true, a victim who is logged in and clicks a crafted link (in a phishing email, a forum post, or even an <img> tag) causes their personalized response to be written into the shared cache under that static-looking key. The attacker then just requests the same URL, unauthenticated, and reads it back.
Why the cache and the origin disagree in the first place
Every shared cache answers one question as cheaply as possible: have I already seen a request equivalent to this one? To answer fast, it reduces the full request down to a short identifier — the cache key — and compares only that, not the whole request.
RFC 9111, the current HTTP caching specification, is blunt about the floor: a cache key is "composed from, at a minimum, the request method and target URI." Everything beyond that — query strings, specific headers, the Vary response header — is left to the implementation. That gap between what the spec requires and what each CDN, reverse proxy, or framework actually decides to key on is where both cache poisoning and cache deception live. The cache and the origin simply don't agree on what the request means, and an attacker who finds the disagreement can walk through it.
This is also why the bug keeps resurfacing in new forms rather than disappearing after 2017. In September 2026, researcher Alex Brumen at YesWeHack published cache key injection, showing that even keyed fragments of a request can be made to collide. His research demonstrated web cache deception without any user interaction at all, plus cache-poisoned denial of service and stored XSS through HTTP scheme confusion — all against a standard Nginx setup with Cloudflare sitting in front as an edge cache.
A library bug makes the same mistake, at the HTTP client layer
It's not just CDNs and reverse proxies. The same class of mistake can live inside the HTTP client your backend uses to call other services. IBM's security bulletin published on November 23, 2026 lists multiple vulnerabilities in undici, Node.js's HTTP client library, including CVE-2026-109829.
That CVE describes a client-side version of the exact same root cause: when an originless Agent composes the redirect and cache interceptors in that order with a shared cache store, the cache builds its key from the original request URL before the redirect handler changes the origin. A response produced after a cross-origin redirect ends up stored under the trusted, original key — meaning a private, user-specific response can be cached and handed out to a later, unauthenticated caller. It carries a CVSS base score of 9.1 and is fixed in undici 7.30.1 and 8.12.2.
If your stack uses fetch(), request, or setGlobalDispatcher in Node.js with a shared cache store and redirect-following enabled, that's worth checking today, not next sprint.
Cache poisoning vs. cache deception: what's the actual difference?
People use these terms interchangeably and it causes real confusion during incident response. They are related but not the same bug.
| Web cache poisoning | Web cache deception |
|---|
| What gets manipulated | The cached content, via an unkeyed input (header, cookie) | The cache's decision to store a response at all |
| Who is harmed | Every subsequent visitor to that URL | The one victim whose private page got cached |
| Typical payload | Injected script, redirect, malformed response | Nothing injected — the victim's own authenticated response |
| Root cause | Input affects the response but isn't in the cache key | URL looks static to the cache but isn't to the origin |
Both exploit the same underlying gap — cache and origin disagreeing about what a request means — just from opposite directions.
How to check if your application is exposed
You don't need a security team to run the first pass. In client projects, I start with these steps before anything more invasive:
- Pick an authenticated, dynamic endpoint — a dashboard, account settings, or billing page.
- Append a static-looking suffix, e.g.
/account/settings/x.css or /account/settings;x.css, and confirm the origin still returns the authenticated content (check for a 200 instead of a 404).
- Request the exact same crafted URL from an unauthenticated session or private window. If you get back the first user's data, the cache stored something it shouldn't have.
- Inspect response headers for
X-Cache: HIT, CF-Cache-Status: HIT, Age, or similar — these confirm the response came from cache rather than the origin.
- Repeat with common extensions:
.css, .js, .png, .jpg, .ico, .pdf, and with path parameters (;x.css) if your framework supports them.
# Quick manual probe (replace with your real authenticated route)
curl -i -b "session=<valid_cookie>" "https://app.example.com/account/settings/probe.css"
curl -i "https://app.example.com/account/settings/probe.css" # no cookie
# If the second response contains the first user's data, you're exposed.
Fixes that close the root cause, not just the symptom
- Cache only on explicit
Cache-Control headers, never purely by file extension. This single change removes the precondition most deception attacks depend on.
- Normalize and validate the URL path at the origin so
/account/settings/x.css returns a 404 instead of silently serving /account/settings.
- Include the full, normalized path and relevant headers in the cache key, and keep per-origin cache stores rather than one shared store across redirect targets — this is literally what fixed CVE-2026-109829 upstream.
- Set
Cache-Control: private, no-store on every authenticated route as a default, and only allow-list what's genuinely cacheable.
- Monitor for anomalous cache hit rates on routes that should never be cached; a sudden spike is a strong signal someone is probing.
If your team is building or hardening an application's caching and CDN layer and wants a second set of eyes on exactly this kind of edge case, that's the kind of defensive review I do as part of web app development engagements — it's cheaper to catch before launch than after a bug bounty report.
Why this still matters for AI agents and fintech checkouts in 2026
Caching is being pushed harder than ever in 2026 as teams chase latency for AI-agent-driven storefronts and payment flows. The more layers you add between a browser and your origin — edge CDN, reverse proxy, application cache, and now HTTP-client-level caching inside microservices — the more places a cache-key mismatch can hide. The same discrepancy that leaked PayPal account pages in 2017 is structurally identical to the one patched in a Node.js HTTP client in late 2026; the technology changed, the gap didn't.
If you've read about favicon-based browser tracking or Next.js cache poisoning CVEs on this blog, this is the same family of bug: something the browser or CDN treats as safely shareable turns out to carry private state. If your app also has CORS misconfigurations, the two issues compound — see our breakdown of fixing CORS errors with credentials for the related failure mode on the request side.
Frequently asked questions
Is web cache deception the same as web cache poisoning?
No. Poisoning injects malicious content into a cache entry that every visitor then receives; deception tricks the cache into storing one victim's private, authenticated response, which only the attacker then retrieves by requesting the same URL.
Which frameworks or CDNs are vulnerable?
It's not tied to one technology. Omer Gil's original research and PortSwigger's follow-up work show it can affect .NET, PHP, and Java applications behind IIS, Apache, Nginx, or major CDNs — it's a configuration and architecture issue, not a single product bug.
Does HTTPS or TLS protect against web cache deception?
No. TLS protects data in transit between the browser and the server; it has nothing to do with how a cache decides whether to store and later replay a response. The vulnerability lives entirely in caching logic after the encrypted connection terminates.
How long does a cached deception entry usually stay exposed?
It depends entirely on the cache's TTL configuration. In the original PayPal case, Gil found cached pages persisted for roughly five hours, and longer if the malicious URL was revisited, which refreshed the cache entry.
Can a web application firewall (WAF) stop this?
A WAF can help if it's configured to inspect and block ambiguous path patterns, but it is not a substitute for fixing the actual cache configuration and origin path handling. Treat a WAF rule as a stopgap, not the fix.
Key takeaways
- Web cache deception stores a victim's private, authenticated page under a URL the cache mistakes for a static file — no injection required, just a path and extension mismatch.
- It's distinct from cache poisoning: deception leaks one person's data to an attacker; poisoning spreads malicious content to every visitor.
- RFC 9111 only requires method and URI in a cache key, leaving every CDN and proxy to decide the rest — that gap is the root cause of this entire bug class.
- The problem isn't limited to edge CDNs: CVE-2026-109829 shows the identical cache-key mismatch inside a Node.js HTTP client library in 2026.
- Fix it by caching strictly on
Cache-Control headers, normalizing origin paths, and keeping per-origin cache keys — not by chasing individual file extensions.