CVE-2026-91130
Home Assistant: XSS in Statistics Graph Card
Home Assistant is open source home automation software focused on local control and privacy. Prior to 2026.7.0, the Statistics Graph card in src/components/chart/statistics-chart.ts passed entity names through getStatisticLabel and computeStateName and interpolated param.seriesName into ECharts tooltip HTML without escaping. An authenticated user or an integration that supplies a malicious default entity name could cause script-related HTML to execute when a viewer hovered over a data point. Mean, State, Sum, and Change fields in the default Line chart configuration were affected, while Bar charts were not. This issue is fixed in version 2026.7.0.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Active
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.3
Home Assistant: XSS in Statistics Graph Card
Home Assistant is open source home automation software focused on local control and privacy. Prior to 2026.7.0, the Statistics Graph card in src/components/chart/statistics-chart.ts passed entity names through getStatisticLabel and computeStateName and interpolated param.seriesName into ECharts tooltip HTML without escaping. An authenticated user or an integration that supplies a malicious default entity name could cause script-related HTML to execute when a viewer hovered over a data point. Mean, State, Sum, and Change fields in the default Line chart configuration were affected, while Bar charts were not. This issue is fixed in version 2026.7.0.
- Record
CVE-2026-91130- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Weakness
- CWE-80
- Updated
- 2026-11-02
EUVDEUVD-2026-84803
9.3
Home Assistant is open source home automation software focused on local control and privacy. Prior to 2026.7.0, the Statistics Graph card in src/components/chart/statistics-chart.ts passed entity names through getStatisticLabel and computeStateName and interpolated param.seriesName into ECharts tooltip HTML without escaping. An authenticated user or an integration that supplies a malicious default entity name could cause script-related HTML to execute when a viewer hovered over a data point. Mean, State, Sum, and Change fields in the default Line chart configuration were affected, while Bar charts were not. This issue is fixed in version 2026.7.0.
- Record
EUVD-2026-84803- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-wx4m-69m9-gx3m
9.3
Home Assistant: XSS in Statistics Graph Card
Summary
An authenticated party can add a malicious name to any statistics-capable entity, allowing for Cross-Site Scripting attacks against anyone who views a Statistics Graph card containing that entity, when they hover over any data point on the chart.
Payload <img width="1529" height="441" alt="image" src="https://github.com/user-attachments/assets/6926ce53-75fb-455a-bd4e-0c5281e8bed8" />
Payload triggering <img width="835" height="469" alt="image" src="https://github.com/user-attachments/assets/0bb9d17a-c123-4d44-8471-35097f65ddd2" />
An alternative, and more impactful scenario, is that the entity gets a malicious name from the provider of the integration (e.g. Tibber, Shelly, or any HACS integration), and is exploited that way through the default name — without requiring any direct access to the Home Assistant instance. This is the same supply-chain vector as CVE-2025-62172.
Details
The Statistics Graph card renders entity names in ECharts tooltips as raw HTML. The offending
line is in src/components/chart/statistics-chart.ts:
Where param.seriesName is interpolated verbatim into the returned HTML string:
return `${time}${param.marker} ${param.seriesName}: ${value}`;
No call to filterXSS() is made — unlike the Energy dashboard chart, which was patched as part
of CVE-2025-62172:
// FIXED in energy-chart-options.ts:268
return `${param.marker} ${filterXSS(param.seriesName!)}: ...`;
The statistics-chart component was not updated when the Energy chart was patched, leaving the
same class of vulnerability in place.
The existing entity and payload used for CVE-2025-62172 is also a valid exploit for this vulnerability: <img width="962" height="500" alt="image" src="https://github.com/user-attachments/assets/35c84dcd-64d4-47b6-8df2-6c8b63cac880" />
The name value flows through the following chain:
-
nameis set fromgetStatisticLabel(this.hass, statistic_id, meta): https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/components/chart/statistics-chart.ts#L411 -
getStatisticLabelis defined here and callscomputeStateName(entity): https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/data/recorder.ts#L329-L339 -
computeStateNameis defined here — no HTML encoding is applied: https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/common/entity/compute_state_name.ts
The only transformation applied to the name is replacing underscores with spaces
(computeObjectId(entityId).replace(/_/g, " ")), which does not prevent HTML injection.
NB: Do note that only the fields Mean, State, Sum and Change are vulnerable. The top 3 (Min, Max, Mean) or the bottom 3 (State, Sum, Change) are selected by default though, making it vulnerable by default:
<img width="105" height="216" alt="image" src="https://github.com/user-attachments/assets/7a784c90-cca5-46da-bcb9-6942ad81da0c" />
Another requirement is that the Chart Type is of type Line, not Bar, which is also the default: <img width="133" height="91" alt="image" src="https://github.com/user-attachments/assets/4f131495-9000-4a80-808b-bf4be9f7a2f6" />
PoC
-
In Settings → Devices & Services → Helpers, click + Create Helper. (For testing)
-
Choose Template → Template sensor. Fill in the form:
- Name:
test <img src=x onerror=alert(document.domain) /> - State template:
{{0.00000001*as_timestamp(states('sensor.date_time_iso'))}} - Unit of measurement:
kWh - State class:
Measurement - Click Submit.
- Name:
<img width="392" height="741" alt="image" src="https://github.com/user-attachments/assets/6a9b2c65-93fb-4d20-89b8-5a1f47a2bcb0" />
- Open a dashboard and add a Statistics Graph…
- Record
GHSA-wx4m-69m9-gx3m- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Weakness
- CWE-80
- Updated
- 2026-11-02
NVD
9.3
Home Assistant is open source home automation software focused on local control and privacy. Prior to 2026.7.0, the Statistics Graph card in src/components/chart/statistics-chart.ts passed entity names through getStatisticLabel and computeStateName and interpolated param.seriesName into ECharts tooltip HTML without escaping. An authenticated user or an integration that supplies a malicious default entity name could cause script-related HTML to execute when a viewer hovered over a data point. Mean, State, Sum, and Change fields in the default Line chart configuration were affected, while Bar charts were not. This issue is fixed in version 2026.7.0.
- Record
CVE-2026-91130- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Weakness
- CWE-80
- Updated
- 2026-11-02
OSV
9.3
Home Assistant: XSS in Statistics Graph Card
Home Assistant is open source home automation software focused on local control and privacy. Prior to 2026.7.0, the Statistics Graph card in src/components/chart/statistics-chart.ts passed entity names through getStatisticLabel and computeStateName and interpolated param.seriesName into ECharts tooltip HTML without escaping. An authenticated user or an integration that supplies a malicious default entity name could cause script-related HTML to execute when a viewer hovered over a data point. Mean, State, Sum, and Change fields in the default Line chart configuration were affected, while Bar charts were not. This issue is fixed in version 2026.7.0.
- Record
CVE-2026-91130- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Weakness
- CWE-80
- Updated
- 2026-11-02
OSVGHSA-wx4m-69m9-gx3m
9.3
Home Assistant: XSS in Statistics Graph Card
Summary
An authenticated party can add a malicious name to any statistics-capable entity, allowing for Cross-Site Scripting attacks against anyone who views a Statistics Graph card containing that entity, when they hover over any data point on the chart.
Payload <img width="1529" height="441" alt="image" src="https://github.com/user-attachments/assets/6926ce53-75fb-455a-bd4e-0c5281e8bed8" />
Payload triggering <img width="835" height="469" alt="image" src="https://github.com/user-attachments/assets/0bb9d17a-c123-4d44-8471-35097f65ddd2" />
An alternative, and more impactful scenario, is that the entity gets a malicious name from the provider of the integration (e.g. Tibber, Shelly, or any HACS integration), and is exploited that way through the default name — without requiring any direct access to the Home Assistant instance. This is the same supply-chain vector as CVE-2025-62172.
Details
The Statistics Graph card renders entity names in ECharts tooltips as raw HTML. The offending
line is in src/components/chart/statistics-chart.ts:
Where param.seriesName is interpolated verbatim into the returned HTML string:
return `${time}${param.marker} ${param.seriesName}: ${value}`;
No call to filterXSS() is made — unlike the Energy dashboard chart, which was patched as part
of CVE-2025-62172:
// FIXED in energy-chart-options.ts:268
return `${param.marker} ${filterXSS(param.seriesName!)}: ...`;
The statistics-chart component was not updated when the Energy chart was patched, leaving the
same class of vulnerability in place.
The existing entity and payload used for CVE-2025-62172 is also a valid exploit for this vulnerability: <img width="962" height="500" alt="image" src="https://github.com/user-attachments/assets/35c84dcd-64d4-47b6-8df2-6c8b63cac880" />
The name value flows through the following chain:
-
nameis set fromgetStatisticLabel(this.hass, statistic_id, meta): https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/components/chart/statistics-chart.ts#L411 -
getStatisticLabelis defined here and callscomputeStateName(entity): https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/data/recorder.ts#L329-L339 -
computeStateNameis defined here — no HTML encoding is applied: https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/common/entity/compute_state_name.ts
The only transformation applied to the name is replacing underscores with spaces
(computeObjectId(entityId).replace(/_/g, " ")), which does not prevent HTML injection.
NB: Do note that only the fields Mean, State, Sum and Change are vulnerable. The top 3 (Min, Max, Mean) or the bottom 3 (State, Sum, Change) are selected by default though, making it vulnerable by default:
<img width="105" height="216" alt="image" src="https://github.com/user-attachments/assets/7a784c90-cca5-46da-bcb9-6942ad81da0c" />
Another requirement is that the Chart Type is of type Line, not Bar, which is also the default: <img width="133" height="91" alt="image" src="https://github.com/user-attachments/assets/4f131495-9000-4a80-808b-bf4be9f7a2f6" />
PoC
-
In Settings → Devices & Services → Helpers, click + Create Helper. (For testing)
-
Choose Template → Template sensor. Fill in the form:
- Name:
test <img src=x onerror=alert(document.domain) /> - State template:
{{0.00000001*as_timestamp(states('sensor.date_time_iso'))}} - Unit of measurement:
kWh - State class:
Measurement - Click Submit.
- Name:
<img width="392" height="741" alt="image" src="https://github.com/user-attachments/assets/6a9b2c65-93fb-4d20-89b8-5a1f47a2bcb0" />
- Open a dashboard and add a Statistics Graph…
- Record
GHSA-wx4m-69m9-gx3m- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Weakness
- CWE-80
- Updated
- 2026-11-02
OSVPYSEC-2026-4052
9.3
Home Assistant: XSS in Statistics Graph Card
Summary
An authenticated party can add a malicious name to any statistics-capable entity, allowing for Cross-Site Scripting attacks against anyone who views a Statistics Graph card containing that entity, when they hover over any data point on the chart.
Payload <img width="1529" height="441" alt="image" src="https://github.com/user-attachments/assets/6926ce53-75fb-455a-bd4e-0c5281e8bed8" />
Payload triggering <img width="835" height="469" alt="image" src="https://github.com/user-attachments/assets/0bb9d17a-c123-4d44-8471-35097f65ddd2" />
An alternative, and more impactful scenario, is that the entity gets a malicious name from the provider of the integration (e.g. Tibber, Shelly, or any HACS integration), and is exploited that way through the default name — without requiring any direct access to the Home Assistant instance. This is the same supply-chain vector as CVE-2025-62172.
Details
The Statistics Graph card renders entity names in ECharts tooltips as raw HTML. The offending
line is in src/components/chart/statistics-chart.ts:
Where param.seriesName is interpolated verbatim into the returned HTML string:
return `${time}${param.marker} ${param.seriesName}: ${value}`;
No call to filterXSS() is made — unlike the Energy dashboard chart, which was patched as part
of CVE-2025-62172:
// FIXED in energy-chart-options.ts:268
return `${param.marker} ${filterXSS(param.seriesName!)}: ...`;
The statistics-chart component was not updated when the Energy chart was patched, leaving the
same class of vulnerability in place.
The existing entity and payload used for CVE-2025-62172 is also a valid exploit for this vulnerability: <img width="962" height="500" alt="image" src="https://github.com/user-attachments/assets/35c84dcd-64d4-47b6-8df2-6c8b63cac880" />
The name value flows through the following chain:
-
nameis set fromgetStatisticLabel(this.hass, statistic_id, meta): https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/components/chart/statistics-chart.ts#L411 -
getStatisticLabelis defined here and callscomputeStateName(entity): https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/data/recorder.ts#L329-L339 -
computeStateNameis defined here — no HTML encoding is applied: https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/common/entity/compute_state_name.ts
The only transformation applied to the name is replacing underscores with spaces
(computeObjectId(entityId).replace(/_/g, " ")), which does not prevent HTML injection.
NB: Do note that only the fields Mean, State, Sum and Change are vulnerable. The top 3 (Min, Max, Mean) or the bottom 3 (State, Sum, Change) are selected by default though, making it vulnerable by default:
<img width="105" height="216" alt="image" src="https://github.com/user-attachments/assets/7a784c90-cca5-46da-bcb9-6942ad81da0c" />
Another requirement is that the Chart Type is of type Line, not Bar, which is also the default: <img width="133" height="91" alt="image" src="https://github.com/user-attachments/assets/4f131495-9000-4a80-808b-bf4be9f7a2f6" />
PoC
-
In Settings → Devices & Services → Helpers, click + Create Helper. (For testing)
-
Choose Template → Template sensor. Fill in the form:
- Name:
test <img src=x onerror=alert(document.domain) /> - State template:
{{0.00000001*as_timestamp(states('sensor.date_time_iso'))}} - Unit of measurement:
kWh - State class:
Measurement - Click Submit.
- Name:
<img width="392" height="741" alt="image" src="https://github.com/user-attachments/assets/6a9b2c65-93fb-4d20-89b8-5a1f47a2bcb0" />
- Open a dashboard and add a Statistics Graph…
- Record
PYSEC-2026-4052- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
homeassistantPyPI |
before 2026.7.0 | 2026.7.0 |
homeassistantPyPI |
before 2026.7.0, plus listed versions 0.10.00.10.10.100.00.100.0b00.100.0b1 Show 45 moreShow less0.100.0b20.100.0b30.100.10.100.20.100.30.101.00.101.0b00.101.0b10.101.0b20.101.0b30.101.0b40.101.10.101.20.101.30.102.00.102.0b00.102.0b10.102.0b20.102.0b30.102.10.102.20.102.30.103.00.103.0b00.103.0b10.103.10.103.20.103.30.103.40.103.50.103.60.104.00.104.0b00.104.0b10.104.0b20.104.0b30.104.0b40.104.0b50.104.10.104.20.104.30.105.00.105.0b00.105.0b50.105.0b6 |
2026.7.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-91130 is a critical vulnerability (CVSS 9.3) in Home-assistant Core, published September 22, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.48%, the 41st percentile. Fixed in homeassistant 2026.7.0.
References
github.com/home-assistant/core/security/advisories/GHSA-wx4m-69m9-gx3m
github.com/home-assistant/frontend/pull/52235
github.com/home-assistant/frontend/commit/b8c201b6d34414d30c622797366570185c219614
github.com/home-assistant/core/releases/tag/2026.7.0
github.com/advisories/GHSA-wx4m-69m9-gx3m
github.com/CVEProject/cvelistV5/tree/main/cves/2026/91xxx/CVE-2026-91130.json
nvd.nist.gov/vuln/detail/CVE-2026-91130
github.com/home-assistant/core
pypi.org/project/homeassistant
Left out here: 1,543 versions and the rest of 3 source descriptions. The JSON record has them.