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

- Severity: Medium 6.2 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-10-17T18:33:03.941Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-fpq4-r87v-g246
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- thingsboard thingsboard: before 4.2.1
- org.thingsboard:application (Maven): before 4.2.1

## Every score

- VulnCheck: CVSS:4.0 6.2 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://advisory.checkmarx.net/advisory/CVE-2025-34281/> (third-party-advisory)
- <https://github.com/thingsboard/thingsboard/commit/b2ae6f92d12206ea185a2e882945a6b69234bf03> (patch, web)
- <https://github.com/thingsboard/thingsboard/releases/tag/v4.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-34281> (advisory)
- <https://github.com/thingsboard/thingsboard/pull/13927> (web)
- <https://advisory.checkmarx.net/advisory/CVE-2025-3261> (web)
- <https://advisory.checkmarx.net/advisory/CVE-2025-34281> (web)
- <https://github.com/thingsboard/thingsboard> (package)
- <https://www.vulncheck.com/advisories/thingsboard-svg-image-stored-xss> (web)

## Sources

- CVE List: [CVE-2025-34281](https://www.cve.org/CVERecord?id=CVE-2025-34281), CVE Terms of Use, modified 2026-02-10
- GitHub Advisory Database: [GHSA-fpq4-r87v-g246](https://github.com/advisories/GHSA-fpq4-r87v-g246), CC-BY-4.0, modified 2026-02-10
- NVD: [CVE-2025-34281](https://nvd.nist.gov/vuln/detail/CVE-2025-34281), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-34281 · Whole record: https://cve.day/CVE-2025-34281.json · Rebuilt by cve.day 2026-11-25T22:59:06.538Z
