CVE-2025-34281 Details
Description
ThingsBoard in versions prior to v4.2.1 allows an authenticated user to upload malicious SVG images via the "Image Gallery", leading to a Stored Cross-Site Scripting (XSS) vulnerability. The exploit can be triggered when any user accesses the public API endpoint of the malicious SVG images, or if the malicious images are embedded in an `iframe` element, during a widget creation, deployed to any page of the platform (e.g., dashboards), and accessed during normal operations. The vulnerability resides in the `ImageController`, which fails to restrict the execution of JavaScript code when an image is loaded by the user's browser. This vulnerability can lead to the execution of malicious code in the context of other users' sessions, potentially compromising their accounts and allowing unauthorized actions.
A stored cross-site scripting vulnerability has been identified in ThingsBoard versions prior to 4.2.1. This issue resides in the dashboard's Image Upload Gallery feature, where an attacker can upload an SVG file embedded with malicious JavaScript. The injected script may execute when the image is displayed in the user interface. The vulnerability arises from inadequate sanitization and improper validation of the content type for uploaded SVG files.
Users can upgrade to ThingsBoard version 4.2.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://advisory.checkmarx.net/advisory/CVE-2025-34281/ | Checkmarx | |
| https://github.com/thingsboard/thingsboard/commit/b2ae6f92d12206ea185a2e882945a6b69234bf03 | Checkmarx | |
| https://github.com/thingsboard/thingsboard/releases/tag/v4.2.1 | Checkmarx | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | Checkmarx |
Affected Products
| Product | Versions |
|---|---|
| thingsboard thingsboard | < 4.2.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | Checkmarx |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 10, 2026 | CVE Modified | Checkmarx |
| Dec 16, 2025 | CVE Modified | Checkmarx |
| Oct 24, 2025 | Initial Analysis | [email protected] |
| Oct 17, 2025 | New CVE Received | [email protected] |