ADVISORIES

GitHub Advisory Database

GHSA-fpq4-r87v-g246

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

Moderate CVE-2025-34281

Details

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

EcosystemPackageAffected versions
Mavenorg.thingsboard:application
All versions before 4.2.1 (fixed in 4.2.1)

References