Can SVG Files Contain Malware? How Attackers Use SVGs for Phishing
Yes. SVG files are XML documents that browsers render, and the SVG standard allows embedded JavaScript, HTML content and links. Attackers send SVG attachments that, when opened in a browser, run scripts that redirect to phishing pages, display fake login forms, or assemble and download malware ("HTML smuggling").