CVE-2025-34281: ThingsBoard Application Vulnerable to Stored XSS in Image Upload Gallery

org.thingsboard:application Updated 11 Feb 2026

Summary

17/10/2025
Yes i
Moderate
5.4

CVE-2025-34281: ThingsBoard versions < 4.2.1 contain a stored cross-site scripting (XSS) vulnerability in the dashboard's Image Upload Gallery feature. Affects org.thingsboard:application versions < 4.2.1. Fixed in 4.2.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

ThingsBoard is an open-source IoT platform that enables users to manage and visualize data from connected devices. It provides a dashboard feature that allows users to upload images for enhanced data presentation. However, certain versions of ThingsBoard are susceptible to a stored cross-site scripting (XSS) vulnerability, which can compromise the security of the application and its users.

Vulnerability Detail

ThingsBoard versions prior to 4.2.1 contain a stored cross-site scripting (XSS) vulnerability in the dashboard's Image Upload Gallery feature. This vulnerability arises from insufficient sanitization and improper content-type validation of uploaded SVG files. An attacker can exploit this flaw by uploading an SVG file containing malicious JavaScript. When the file is rendered in the user interface, the malicious script may execute, potentially leading to unauthorized actions or data exposure.

How To Fix

Minimum fixed version

4.2.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict the types of files that can be uploaded to the Image Upload Gallery. Ensure that only safe file types (e.g., JPEG, PNG) are allowed, and implement server-side validation to reject any SVG files or other potentially harmful formats.

Conclusion

In summary, the ThingsBoard application is vulnerable to a stored cross-site scripting (XSS) issue in its Image Upload Gallery feature, affecting versions prior to 4.2.1. It is crucial to update to the latest version to mitigate this risk and ensure the security of your application.

See every vulnerability recorded for org.thingsboard:application →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.4, indicating a moderate severity level.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability could allow attackers to execute malicious scripts in the context of the user's session, leading to data theft, unauthorized actions, or other security breaches.

While updating to the patched version is the best solution, you can mitigate the risk by restricting file uploads to safe formats and implementing strict server-side validation.

ThingsBoard versions prior to 4.2.1 are affected by this stored XSS vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for org.thingsboard:application.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

4.2.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback