ThingsBoard, Stored Cross-Site Scripting (XSS), Moderate

Listen to this Post

The vulnerability in ThingsBoard versions prior to v4.2.1 involves a stored cross-site scripting (XSS) attack via malicious SVG image uploads. Authenticated users can upload SVG files containing embedded JavaScript code through the “Image Gallery” feature. The ImageController fails to properly sanitize or restrict the execution of scripts within SVG images when served via public API endpoints. When a victim accesses the malicious image directly through the endpoint or views it embedded in an iframe within a widget on dashboards, the browser renders the SVG and executes the contained JavaScript. This occurs because SVG is an XML-based format that can include

Scroll to Top