Skip to content
NewA calmer, faster ZeroHour
Researchmedium

Cloudflare Image Transformations chain bypasses CSP for XSS

Original title: Cloudflare Image Transformation Flaw Allows Hackers to Bypass CSP and Execute Malicious JavaScript

GBHackersby Divya ()3 min read
Part of a story covered by 2 sourcesResearchers chain Cloudflare image flaws to run script despite CSPMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Researchers combined an SVG sanitizer bug, Chromium cache behavior, and redirects; no CVE or wild exploitation is confirmed.

Kevin Gervot and Adam Kues published an October 28, 2026 analysis of Cloudflare’s /cdn-cgi/image/ endpoint. An XML serialization flaw in svg-hush and xml-rs can inject script after sanitization, while a Chromium cache interaction can drop a forwarded Content-Security-Policy header. Redirects, including a Cloudflare Access logout path in some setups, can fetch an attacker-hosted image. They demonstrated XSS on Cloudflare’s website; exploitation depends on configuration and browser conditions.

Unconfirmed: The report does not confirm in-the-wild exploitation or say whether Cloudflare has fixed the chain.

Key facts
  • The cache behavior was observed in Chromium, not Firefox or Safari.
  • A restrictive CSP, including default-src 'none', initially blocked the injected script.
  • Permissive image sources simplify the chain; restricted sources need an eligible redirect.
  • The researchers also applied the cache primitive to Netlify Image CDN and some public S3 objects.
  • The report gives no CVE identifier or remediation timeline.
Security assessment · AI, from the articlePublic proof of concept

Impact: Same-origin JavaScript execution through the image endpoint

ProductAffected
Cloudflare Image Transformations—
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

From the original article

3 min read at gbhackers.com

Security researchers have demonstrated an attack chain against Cloudflare’s Image Transformations service that bypasses SVG sanitization and Content Security Policy (CSP), enabling malicious JavaScript execution on a targeted website’s origin. Published on October 28, 2026, the research combines an XML serialization flaw, Chromium cache behavior, and redirects that circumvent image source restrictions.

GBHackers

By Divya · gbhackers.com

Read the full article at GBHackers

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.