CVE-2025-34281: ThingsBoard · XSS or 'Cross-site Scripting'
Affects ThingsBoardSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 4.2.1 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.2.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade thingsboard/thingsboard to 4.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubthingsboard/thingsboardpkg:github/thingsboard/thingsboardOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade ThingsBoard installations to version 4.2.1 or later, where this vulnerability is patched. 2. Implement strict server-side validation of uploaded SVG files, including sanitization to remove any embedded scripts or potentially harmful content. 3. Enforce content-type validation to ensure only legitimate image files are accepted, rejecting files with suspicious MIME types or extensions. 4. Restrict upload permissions to trusted users only and monitor upload activity for anomalies. 5. Apply Content Security Policy (CSP) headers in the web application to limit the execution of inline scripts and reduce XSS impact. 6. Educate users and administrators about the risks of uploading untrusted files and encourage vigilance when interacting with uploaded content. 7. Regularly audit and monitor ThingsBoard dashboards for unusual behavior or unauthorized content. 8. Consider isolating the dashboard interface or using web application firewalls (WAFs) to detect and block malicious payloads targeting this vulnerability.
Description
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.