ThingsBoard, Inc. ThingsBoard
ThingsBoard < v4.2.1 SVG Image SSRF
ThingsBoard versions < 4.2.1 contain a server-side request forgery (SSRF) vulnerability in the dashboard's Image Upload Gallery feature. An attacker can upload a malicious SVG file that references a remote URL. If the server processes the SVG file in a way that parses external references, it may initiate unintended outbound requests. This can be used to access internal services or resources.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.2.1
Fixed in 4.2.1
Mitigation
Upgrade ThingsBoard to 4.2.1 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 160 days after publication; not in CISA KEV. First PoC: mathitam/thingsboard-ssrf-cve-2025-34282 (created 26 Mar 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| mathitam/thingsboard-ssrf-cve-2025-34282 | 26 Mar 2026 +160 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/image
- Key headers
Origin: http://localhost:8080Referer: http://localhost:8080/resources/imagesX-Authorization: Bearer {var}- Body markers
name="file"inmultipart/form-data- Ports
- 8080
- PoC User-Agent
python-requests/2.x- Seen in
- 1 repo: mathitam/thingsboard-ssrf-cve-2025-34282
- Evidence
- mathitam/thingsboard-ssrf-cve-2025-34282/thingsboard_4.2.0_ssrf_CVE-2025-34282_exploit.py:89
POST /api/widgetType
- Key headers
Origin: http://localhost:8080Referer: http://localhost:8080/resources/imagesX-Authorization: Bearer {var}- Body markers
"fqn":"SSRF_testing_Poc""name":"SSRF_testing_Poc""deprecated""image":"tb-image;/api/images/system/air_quality_index_card_system_widget_image.png""description":"Displays the latest air quality index telemetry in a scalable rectangle card.""descriptor""resources""scada""tags"inapplication/json- Ports
- 8080
- PoC User-Agent
python-requests/2.x- Seen in
- 1 repo: mathitam/thingsboard-ssrf-cve-2025-34282
- Evidence
- mathitam/thingsboard-ssrf-cve-2025-34282/thingsboard_4.2.0_ssrf_CVE-2025-34282_exploit.py:136
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/image(?:[?#].*)?$
(?i)^/api/widgetType(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-34282 ThingsBoard, Inc. ThingsBoard exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/image"; http.header; content:"Origin: http://localhost:8080"; nocase; http.header; content:"Referer: http://localhost:8080/resources/images"; nocase; http.header; content:"X-Authorization: Bearer "; nocase; http.request_body; content:"name=|22|file|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-34282; classtype:web-application-attack; sid:9757618; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-34282 ThingsBoard, Inc. ThingsBoard exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/widgetType"; http.header; content:"Origin: http://localhost:8080"; nocase; http.header; content:"Referer: http://localhost:8080/resources/images"; nocase; http.header; content:"X-Authorization: Bearer "; nocase; http.request_body; content:"|22|fqn|22|:|22|SSRF_testing_Poc|22|"; http.request_body; content:"|22|name|22|:|22|SSRF_testing_Poc|22|"; http.request_body; content:"|22|deprecated|22|"; http.request_body; content:"|22|image|22|:|22|tb-image|3b|/api/images/system/air_quality_index_card_system_widget_image.png|22|"; http.request_body; content:"|22|description|22|:|22|Displays the latest air quality index telemetry in a scalable rectangle card.|22|"; http.request_body; content:"|22|descriptor|22|"; http.request_body; content:"|22|resources|22|"; http.request_body; content:"|22|scada|22|"; http.request_body; content:"|22|tags|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-34282; classtype:web-application-attack; sid:9550133; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: ThingsBoard, Inc. ThingsBoard exploit attempt (CVE-2025-34282)
id: gg-pocmon-cve-2025-34282-9757618
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-34282. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-34282
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/image'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.34282
title: ThingsBoard, Inc. ThingsBoard exploit attempt (CVE-2025-34282)
id: gg-pocmon-cve-2025-34282-9550133
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-34282. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-34282
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/widgetType'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.34282