{"answers":{"affected":"2 open source packages ship an affected version, including org.thingsboard:application. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-34281 in the wild and no public exploit code.","fix":"Upgrade org.thingsboard:application to 4.2.1 or later.","what":"CVE-2025-34281 is a medium-severity cross-site scripting vulnerability in thingsboard, published on 17 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-34281 and fix it if it is affected.\n\nWhat it is: CVE-2025-34281 is a medium-severity cross-site scripting vulnerability in thingsboard, published on 17 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-34281 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.thingsboard:application (Maven): affected all versions; fixed in 4.2.1\n- org.thingsboard:application (Maven): affected all versions; fixed in 4.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-34281/ (Markdown: https://insights.sbomify.com/CVE-2025-34281/index.md)","id":"CVE-2025-34281","markdown":"https://insights.sbomify.com/CVE-2025-34281/index.md","name":"CVE-2025-34281","record":{"aliases":["GHSA-fpq4-r87v-g246"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"IoT platform","requires_auth":"low_privilege","summary":"Authenticated users can upload malicious SVGs to trigger stored XSS, potentially compromising other users' accounts and sessions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"thingsboard","vendor":"thingsboard"}],"cvss":{"score":6.2,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Stored Cross-Site Scripting (XSS) in ThingsBoard","id":"CVE-2025-34281","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":3,"next":{"headline":"ThingsBoard \u003c v4.2.1 SVG Image SSRF","id":"CVE-2025-34282"},"packages":[{"ecosystem":"Maven","fixed":["4.2.1"],"introduced":["0"],"last_affected":[],"package":"org.thingsboard:application","purl":null,"source":"GHSA-fpq4-r87v-g246"},{"ecosystem":"Maven","fixed":["4.2.1"],"introduced":["0"],"last_affected":[],"package":"org.thingsboard:application","purl":"pkg:maven/org.thingsboard/application","source":"GHSA-fpq4-r87v-g246"}],"prev":{"headline":"Nagios Network Analyzer \u003c 2024R2.0.1 RCE in LDAP Certificate Removal Function","id":"CVE-2025-34280"},"products":["thingsboard"],"published":"2025-10-17","related":[{"cvss_score":9.6,"headline":"Cross-site scripting in n/a","id":"CVE-2022-40004","kev_date_added":null,"published":"2022-12-15"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2022-45608","kev_date_added":null,"published":"2023-03-01"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2022-48341","kev_date_added":null,"published":"2023-02-23"},{"cvss_score":8.8,"headline":"Open redirect in n/a","id":"CVE-2020-27687","kev_date_added":null,"published":"2020-12-18"},{"cvss_score":8.4,"headline":"ThingsBoard Server-Side Template Injection","id":"CVE-2023-45303","kev_date_added":null,"published":"2023-10-06"},{"cvss_score":8.1,"headline":"Hardcoded credentials in n/a","id":"CVE-2023-26462","kev_date_added":null,"published":"2023-02-23"},{"cvss_score":6.9,"headline":"ThingsBoard \u003c v4.2.1 SVG Image SSRF","id":"CVE-2025-34282","kev_date_added":null,"published":"2025-10-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-10","vendors":["thingsboard"]},"summary":"Authenticated users can upload malicious SVGs to trigger stored XSS, potentially compromising other users' accounts and sessions.","url":"https://insights.sbomify.com/CVE-2025-34281/"}