Established 2026Saturday, 7 November 2026
presents

The CloudySec Digest

“The wires, edited.”
← Front PageResearch Desk
Research

Scalable Vector Grief

PortSwigger bypassed six of eight major SVG sanitisers by exploiting a Firefox behaviour where response headers can trigger JavaScript execution even from benign SVG bodies—a widespread stored-XSS risk for file-upload features.

Summary written by editorial AI · Source link below

Filed by PortSwigger Research1 min readRead at source ↗

I tested eight popular SVG sanitizers and bypassed six of them. In this post, I'll show you how a response header can run JavaScript in Firefox even when the response body is completely harmless XML.

Editorial Analysis

Why it matters

Enterprises that accept SVG uploads face a broad stored-XSS risk because most sanitiser libraries fail to account for browser-specific header interactions that re-enable script execution.

What to do

Audit your file-upload endpoints for SVG handling, verify your sanitiser against the published bypasses, and enforce strict Content-Disposition and CSP headers on served SVG content.

Board brief

Most popular SVG sanitisation libraries can be bypassed, creating stored cross-site scripting risk wherever users upload images.

Forward-looking interpretation drafted by editorial AI under human review — not a reproduction of the source. See methodology.

Continue at the source
Read the full report at PortSwigger Research

External link — opens at PortSwigger Research in a new tab.

§
Continue with

More from the Research Desk