{"id":"CVE-2025-34281","aliases":["CVE-2025-34281","GHSA-fpq4-r87v-g246"],"related":[],"kind":"vulnerability","state":"published","title":"Stored Cross-Site Scripting (XSS) in ThingsBoard","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"ThingsBoard en versiones anteriores a v4.2.1 permite a un usuario autenticado cargar imágenes SVG maliciosas a través de la 'Galería de imágenes', lo que lleva a una vulnerabilidad de Cross-Site Scripting Almacenado (XSS). El exploit puede activarse cuando cualquier usuario accede al endpoint de la API pública de las imágenes SVG maliciosas, o si las imágenes maliciosas se incrustan en un elemento 'iframe', durante la creación de un widget, desplegado en cualquier página de la plataforma (p. ej., paneles de control), y se accede a ellas durante las operaciones normales. La vulnerabilidad reside en el 'ImageController', que no restringe la ejecución de código JavaScript cuando una imagen es cargada por el navegador del usuario. Esta vulnerabilidad puede llevar a la ejecución de código malicioso en el contexto de las sesiones de otros usuarios, comprometiendo potencialmente sus cuentas y permitiendo acciones no autorizadas.","source":"nvd"}],"published":"2025-10-17T18:33:03.941Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"git","introduced":"0","fixed":"4.2.1","status":"affected"}],"vendor":"thingsboard","product":"thingsboard","repo":"https://github.com/thingsboard/thingsboard","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.1"}],"ecosystem":"Maven","package":"org.thingsboard:application","purl":"pkg:maven/org.thingsboard/application","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.2.1"}],"vendor":"thingsboard","product":"thingsboard","cpe":"cpe:2.3:a:thingsboard:thingsboard:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://advisory.checkmarx.net/advisory/CVE-2025-34281/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/thingsboard/thingsboard/commit/b2ae6f92d12206ea185a2e882945a6b69234bf03","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/thingsboard/thingsboard/releases/tag/v4.2.1","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-34281","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/thingsboard/thingsboard/pull/13927","tags":["web"],"sources":["ghsa"]},{"url":"https://advisory.checkmarx.net/advisory/CVE-2025-3261","tags":["web"],"sources":["ghsa"]},{"url":"https://advisory.checkmarx.net/advisory/CVE-2025-34281","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/thingsboard/thingsboard","tags":["package"],"sources":["ghsa"]},{"url":"https://www.vulncheck.com/advisories/thingsboard-svg-image-stored-xss","tags":["web"],"sources":["ghsa"]}],"credits":["João Oliveira from Checkmarx Security Research Group"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-17T18:58:41.437Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-34281","url":"https://www.cve.org/CVERecord?id=CVE-2025-34281","licence":"CVE Terms of Use","modified":"2026-02-10T15:32:17.457Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fpq4-r87v-g246","url":"https://github.com/advisories/GHSA-fpq4-r87v-g246","licence":"CC-BY-4.0","modified":"2026-02-10T21:56:17.870Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-34281","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-34281","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"}],"updatedAt":"2026-11-25T22:59:06.538Z","epss":{"score":0.00373,"percentile":0.33309,"date":"2026-12-01T12:00:22.000Z"}}