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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.thingsboard:application | < 4.2.1 | 4.2.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Thingsboard | Thingsboard | before 4.2.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://advisory.checkmarx.net/advisory/CVE-2025-34281/
- https://github.com/thingsboard/thingsboard/commit/b2ae6f92d12206ea185a2e882945a6b69234bf03
- https://github.com/thingsboard/thingsboard/releases/tag/v4.2.1
- https://github.com/advisories/GHSA-fpq4-r87v-g246
- https://nvd.nist.gov/vuln/detail/CVE-2025-34281
- https://github.com/thingsboard/thingsboard/pull/13927
- https://www.vulncheck.com/advisories/thingsboard-svg-image-stored-xss
- https://advisory.checkmarx.net/advisory/CVE-2025-3261
- https://advisory.checkmarx.net/advisory/CVE-2025-34281