muffin.ink personal blog

The woes of sanitizing SVGs

Scratch has a long history of SVG-related vulnerabilities. The source of these is that Scratch parses user-generated (ie. attacker-controlled) content into an <svg> element and appends it into the main document for various operations (eg. measuring SVG bounding box in a more reliable way than viewbox or width/height).
Points
271
HN comments
109
Submissions
1
Cited by
0 commenters

Web & FrontendSecurity & Privacy2026

On Hacker News

SubmittedTitle on HNPointsComments
Apr 27, 2026The woes of sanitizing SVGs by varun_ch271109

Related posts from the same era