SVG animate XSS vector
Summary: PortSwigger researcher Gareth Heyes published research on 28 January 2020 describing an XSS vector that hides a JavaScript URL inside the values attribute of the SVG animate tag, using the keyTimes and repeatCount attributes to keep the URL displayed rather than cycling past it. Heyes said the technique was aimed at confusing WAFs that look for the JavaScript protocol, and PortSwigger released an interactive lab in its Web Security Academy built around it.
Bottom line: A payload that keeps a JavaScript URL on screen through SVG animation timing is designed specifically to slip past WAFs that scan for the JavaScript protocol, so signature-based filtering may not catch it.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026