Home Assistant
CVE-2023-41895
CRITICAL
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Lifecycle Timeline
1DescriptionNVD
Home assistant is an open source home automation. The Home Assistant login page allows users to use their local Home Assistant credentials and log in to another website that specifies the redirect_uri and client_id parameters. Although the redirect_uri validation typically ensures that it matches the client_id and the scheme represents either http or https, Home Assistant will fetch the client_id and check for <link rel="redirect_uri" href="..."> HTML tags on the page. These URLs are not subjected to the same scheme validation and thus allow for arbitrary JavaScript execution on the Home Assistant administration page via usage of javascript: scheme URIs. This Cross-site Scripting (XSS) vulnerability can be executed on the Home Assistant frontend domain, which may be used for a full takeover of the Home Assistant account and installation. This issue has been addressed in version 2023.9.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
AnalysisAI
Home assistant is an open source home automation. Rated critical severity (CVSS 9.6), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
Technical ContextAI
This vulnerability is classified as Cross-Site Scripting (XSS) (CWE-79), which allows attackers to inject malicious scripts into web pages viewed by other users. Home assistant is an open source home automation. The Home Assistant login page allows users to use their local Home Assistant credentials and log in to another website that specifies the redirect_uri and client_id parameters. Although the redirect_uri validation typically ensures that it matches the client_id and the scheme represents either http or https, Home Assistant will fetch the client_id and check for <link rel="redirect_uri" href="..."> HTML tags on the page. These URLs are not subjected to the same scheme validation and thus allow for arbitrary JavaScript execution on the Home Assistant administration page via usage of javascript: scheme URIs. This Cross-site Scripting (XSS) vulnerability can be executed on the Home Assistant frontend domain, which may be used for a full takeover of the Home Assistant account and installation. This issue has been addressed in version 2023.9.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability. Affected products include: Home-Assistant. Version information: version 2023.9.0.
RemediationAI
No vendor patch is available at time of analysis. Monitor vendor advisories for updates. Sanitize all user input, use Content-Security-Policy headers, encode output contextually (HTML, JS, URL). Use frameworks with built-in XSS protection.
More in Home Assistant
View allhomeassistant is an open source home automation tool. Rated critical severity (CVSS 10.0), this vulnerability is remotel
Home assistant is an open source home automation. Rated critical severity (CVSS 9.6), this vulnerability is remotely exp
Home Assistant before 2021.1.3 does not have a protection layer that can help to prevent directory-traversal attacks aga
Home assistant is an open source home automation. Rated critical severity (CVSS 9.0), this vulnerability is remotely exp
Home Assistant is open source home automation software. Rated medium severity (CVSS 4.3), this vulnerability is no authe
Cross-site scripting in Home Assistant's Map card component allows authenticated users to inject malicious JavaScript th
Home assistant is an open source home automation. Rated high severity (CVSS 7.2), this vulnerability is remotely exploit
In Home Assistant before 0.57, it is possible to inject JavaScript code into a persistent notification via crafted Markd
Home assistant is an open source home automation. Rated medium severity (CVSS 5.4), this vulnerability is remotely explo
Home assistant is an open source home automation. Rated medium severity (CVSS 5.3), this vulnerability is remotely explo
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today