Skip to content

Commit fc4e0e8

Browse files
1 parent 3f93cc8 commit fc4e0e8

2 files changed

Lines changed: 119 additions & 0 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-46j8-vpx8-6p72",
4+
"modified": "2026-03-27T20:35:01Z",
5+
"published": "2026-03-27T20:35:01Z",
6+
"aliases": [
7+
"CVE-2026-33045"
8+
],
9+
"summary": "Home Assistant has stored XSS in history-graphs",
10+
"details": "### Summary\nThe \"remaining charge time\"-sensor for mobile phones (imported/included from Android Auto it appears) is vulnerable to the same issue as CVE-2025-62172.\n<img width=\"431\" height=\"334\" alt=\"image\" src=\"https://github.com/user-attachments/assets/84e0dfad-b986-4e84-ad0e-674c5da88582\" />\nThis also indicates that any sensor showing their name in the history-graph, is likely to be vulnerable to this issue.\n\n### Details\n\nAnother entity was found which displays the same behavior as in this issue: [CVE-2025-62172](https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m)\n\n\nThe History-graph card will sometimes display the name of the entity it is displaying, when the graph is shown as a line with values on the x and y axis. This appears to be vulnerable to Cross-Site scripting (_XSS_) as it does not have any output escaping or sanitization.\n\nThe PoC in this instance only shows HTML-injection in the form of the `<s>` -tag being rendered as strike through, but the vulnerability also allows for injecting arbitrary tags which execute JavaScript, like the example given in the PoC description below.\n\n\n### PoC\n1. Register a new sensor (or device) or change the name of an existing one, which provides a location\n2. Change the name to something malicious, for example `test <img src=x onerror=alert(document.domain) />`\n For a new entity, it should work when setting the name. For old entities, go here:\n<img width=\"1300\" height=\"411\" alt=\"image\" src=\"https://github.com/user-attachments/assets/7dbd9afa-2f4b-4d03-9384-d57c53eaff5c\" />\n<img width=\"1383\" height=\"885\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c4cfba2e-e2d8-4817-92fe-f17ba7877e27\" />\n<img width=\"387\" height=\"436\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c40e986d-20ca-416e-bcdb-ca1d3afa77a4\" />\n<br>\n<img width=\"392\" height=\"515\" alt=\"image\" src=\"https://github.com/user-attachments/assets/623fcf8c-eef1-4b17-853d-0ff5440aecaa\" />\n\n**PS: the example pictures show changing the name of the device-tracker entity, which is wrong. Just change the name of the `remaining charge time`-sensor in order to validate this finding**\n\n3. Add a history graph card with the malicious sensor\n<img width=\"696\" height=\"474\" alt=\"image\" src=\"https://github.com/user-attachments/assets/3cda78e6-3db5-4075-8924-ab9fc5759082\" />\n\n5. Hover the graph for payload execution\n<img width=\"343\" height=\"196\" alt=\"image\" src=\"https://github.com/user-attachments/assets/99e56169-b06a-4c60-9343-510e5d74af12\" />\n\n\n### Impact\n\nThe impact of this vulnerability is that a user can target other users of the system and perform account takeover through client side exploitation of XSS.\n\nIn the context of this system, I believe the vulnerability to be less impactful than the CVSS metric describes. It is not displayed anywhere by default, it is not natural to display this history graph, and it also has no potential for being imported through seemingly innocent integrations. It also appears to rely on having used/using Android Auto. Other devices which has the same sensor can trigger the same vulnerability, and I expect there to exists cloud-based devices that would enable a threat actor to deliver the payload remotely.\n\nCredit: Robin Lunde - [https://robinlunde.com](https://robinlunde.com)",
11+
"severity": [
12+
{
13+
"type": "CVSS_V4",
14+
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "PyPI",
21+
"name": "homeassistant"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "2025.02"
29+
},
30+
{
31+
"fixed": "2026.01"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/home-assistant/core/security/advisories/GHSA-46j8-vpx8-6p72"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m"
46+
},
47+
{
48+
"type": "PACKAGE",
49+
"url": "https://github.com/home-assistant/core"
50+
}
51+
],
52+
"database_specific": {
53+
"cwe_ids": [
54+
"CWE-79"
55+
],
56+
"severity": "LOW",
57+
"github_reviewed": true,
58+
"github_reviewed_at": "2026-03-27T20:35:01Z",
59+
"nvd_published_at": null
60+
}
61+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-r584-6283-p7xc",
4+
"modified": "2026-03-27T20:33:22Z",
5+
"published": "2026-03-27T20:33:22Z",
6+
"aliases": [
7+
"CVE-2026-33044"
8+
],
9+
"summary": "Home Assistant has stored XSS in Map-card through malicious device name",
10+
"details": "### Summary\nAn authenticated party can add a malicious name to their device entity, allowing for Cross-Site Scripting attacks against anyone who can see a dashboard with a Map-card which includes that entity. It requires that the victim hovers over an information point (The lines or the dots representing that device's movement, as shown in the screenshot below, with the example showing a html-injection using `<s>` to strikethrough the text)\n<img width=\"348\" height=\"355\" alt=\"image\" src=\"https://github.com/user-attachments/assets/1af3ef33-3a72-4816-8ade-e6405aace176\" />\n\nThis allows an authenticated user to execute JavaScript in the context of any other users accessing a dashboard.\n\n### Details\n\nThe vulnerability exists in the map-card by adding a malicious entity and having the property `hours_to_show` set.\nSee example below, with the malicious entity being `Pixel 9 <s> Fold Robin {{7*7}}`:\nMap card with malicious device entity:\n<img width=\"338\" height=\"332\" alt=\"image\" src=\"https://github.com/user-attachments/assets/15229cc3-1b69-438c-9ee5-cbfa9483aec9\" />\n\nYAML-view of same card:\n<img width=\"338\" height=\"198\" alt=\"image\" src=\"https://github.com/user-attachments/assets/cd579266-75c3-4cdf-9d08-1544a6887feb\" />\n\n\nThis issue largely resembles the issue documented in: [CVE-2025-62172](https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m), but with an entity which can be displayed in a Map, instead of in an energy-dashboard.\n\n\n### PoC\n1. Register a new sensor (or device) or change the name of an existing one, which provides a location\n2. Change the name to something malicious, for example `test <img src=x onerror=alert(document.domain) />`\nFor a new entity, it should work when setting the name. For old entities, go here:\n<img width=\"1300\" height=\"411\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d240549e-f26c-4617-89d7-5480451ae5a3\" />\n<img width=\"1383\" height=\"885\" alt=\"image\" src=\"https://github.com/user-attachments/assets/94db6186-ad54-476c-92a3-9f6870b0c862\" />\n<img width=\"387\" height=\"436\" alt=\"image\" src=\"https://github.com/user-attachments/assets/f4c4b9f6-b1e7-4b50-9012-3be31c617be4\" />\n<br>\n<img width=\"392\" height=\"515\" alt=\"image\" src=\"https://github.com/user-attachments/assets/a0f24d2f-cc18-4ef7-9071-40376dbb38c1\" />\n\n3. Add the entity to a map card, which has the \"hours to show\"-attribute set, to display movement history\n<img width=\"296\" height=\"383\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b2db55b6-3d4b-4ab0-91fe-fc26813ad5ff\" />\n<img width=\"692\" height=\"410\" alt=\"image\" src=\"https://github.com/user-attachments/assets/aec15e07-12c0-4abf-ba73-979736131c7c\" />\n\n<img width=\"694\" height=\"302\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e4bb7cac-fe85-41eb-963c-1743e78d937c\" />\n\n(The left arrow showing the custom setting, and the right arrow showing a data point which needs to be hovered)\n\n4. The payload executes when hovering a data-point (here shown with an \"alert(document.domain\"-payload)\n<img width=\"504\" height=\"118\" alt=\"image\" src=\"https://github.com/user-attachments/assets/9f24e1fe-949f-4fa5-9e4f-781828a1343b\" />\n\n### Impact\nThe impact of this vulnerability is that a user can target other users of the system and perform account takeover through client side exploitation of XSS.\n\nIn the context of this system, I believe the vulnerability to be less impactful than the CVSS metric describes, as it requires a specific setup (map-card with attribute `hours_to_show` set, as this brings up the trail). It is interesting to note that any user who sets this attribute, will be highly likely to trigger the vulnerability through normal use. It also has no potential for being imported through seemingly innocent integrations and can only be set explicitly by another invited user, a device name, a cloud service or through social engineering. Other devices which has the same sensor can trigger the same vulnerability, and I expect there to exists cloud-based devices that would enable a threat actor to deliver the payload remotely.\n\nSuggested criticality: **Medium**\n\nCredit: Robin Lunde - [https://robinlunde.com](https://robinlunde.com)",
11+
"severity": [
12+
{
13+
"type": "CVSS_V4",
14+
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "PyPI",
21+
"name": "homeassistant"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "2020.02"
29+
},
30+
{
31+
"fixed": "2026.01"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/home-assistant/core/security/advisories/GHSA-r584-6283-p7xc"
42+
},
43+
{
44+
"type": "PACKAGE",
45+
"url": "https://github.com/home-assistant/core"
46+
}
47+
],
48+
"database_specific": {
49+
"cwe_ids": [
50+
"CWE-79",
51+
"CWE-80"
52+
],
53+
"severity": "LOW",
54+
"github_reviewed": true,
55+
"github_reviewed_at": "2026-03-27T20:33:22Z",
56+
"nvd_published_at": null
57+
}
58+
}

0 commit comments

Comments
 (0)