Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.thingsboard/application
  4. ›
  5. CVE-2025-3261

CVE-2025-3261: ThingsBoard allows an authenticated user to upload malicious SVG images

November 27, 2025 (updated December 1, 2025)

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.

References

  • advisory.checkmarx.net/advisory/CVE-2025-3261
  • github.com/advisories/GHSA-5p82-2q3r-wj3m
  • github.com/thingsboard/thingsboard
  • github.com/thingsboard/thingsboard/commit/b2ae6f92d12206ea185a2e882945a6b69234bf03
  • nvd.nist.gov/vuln/detail/CVE-2025-3261

Code Behaviors & Features

Detect and mitigate CVE-2025-3261 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.2.1

Fixed versions

  • 4.2.1

Solution

Upgrade to version 4.2.1 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.thingsboard/application/CVE-2025-3261.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Dec 2025 00:19:26 +0000.