CVE-2025-34281: Stored Cross-Site Scripting (XSS) in ThingsBoard

Published Oct 17, 2025
·
Updated

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.

Affected Software

2 affected components
ThingsBoard ThingsBoard<4.2.1
ThingsBoard ThingsBoard<4.2.1

Event History

Oct 17, 2025
CVE Published
via MITRE·06:33 PM
Data Sourced
via MITRE·06:33 PM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Dec 25, 57928
Event
via NVD·04:15 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-34281?

CVE-2025-34281 is classified with medium severity due to its potential for stored cross-site scripting (XSS) attacks.

2

What versions of ThingsBoard are affected by CVE-2025-34281?

ThingsBoard versions prior to 4.2.1 are affected by CVE-2025-34281.

3

How do I fix CVE-2025-34281?

To mitigate CVE-2025-34281, upgrade ThingsBoard to version 4.2.1 or later.

4

What type of vulnerability is CVE-2025-34281?

CVE-2025-34281 is a stored cross-site scripting (XSS) vulnerability.

5

What is the impact of CVE-2025-34281?

CVE-2025-34281 allows attackers to execute malicious JavaScript by uploading compromised SVG files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203