NetSight
medium5.4

CVE-2025-34281

ThingsBoard vulnerable to stored cross-site scripting (XSS) vulnerability in the dashboard's Image Upload Gallery feature

Impact

ThingsBoard versions < 4.2.1 contain a stored cross-site scripting (XSS) vulnerability in the dashboard's Image Upload Gallery feature. An attacker can upload an SVG file containing malicious JavaScript, which may be executed when the file is rendered in the UI. This issue results from insufficient sanitization and improper content-type validation of uploaded SVG files.

Affected packages

EcosystemPackageAffectedFixed in
mavenorg.thingsboard:application< 4.2.14.2.1

Affected products

VendorProductAffected versions
ThingsboardThingsboard
before 4.2.1

Weakness classification

References