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

CVE-2025-34281: ThingsBoard vulnerable to stored cross-site scripting (XSS) vulnerability in the dashboard's Image Upload Gallery feature

October 17, 2025 (updated February 10, 2026)

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.

References

  • advisory.checkmarx.net/advisory/CVE-2025-3261
  • advisory.checkmarx.net/advisory/CVE-2025-34281
  • github.com/advisories/GHSA-fpq4-r87v-g246
  • github.com/thingsboard/thingsboard
  • github.com/thingsboard/thingsboard/commit/b2ae6f92d12206ea185a2e882945a6b69234bf03
  • github.com/thingsboard/thingsboard/pull/13927
  • github.com/thingsboard/thingsboard/releases/tag/v4.2.1
  • nvd.nist.gov/vuln/detail/CVE-2025-34281
  • www.vulncheck.com/advisories/thingsboard-svg-image-stored-xss

Code Behaviors & Features

Detect and mitigate CVE-2025-34281 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 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/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-34281.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 25 Mar 2026 00:18:35 +0000.