CVE-2023-41897 Lack of XFO header allows clickjacking in Home Assistant Core
Missing X-Frame-Options header allows clickjacking, enabling attackers to trick users into installing malicious add-ons for remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2023-41897?
CVE-2023-41897 is a high-severity cross-site scripting vulnerability in home-assistant core, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Home assistant is an open source home automation. Home Assistant server does not set any HTTP security headers, including the X-Frame-Options header, which specifies whether the web page is allowed to be framed. The omission of this and correlating headers facilitates covert clickjacking attacks and alternative exploit opportunities, such as the vector described in this security advisory. This fault incurs major risk, considering the ability to trick users into installing an external and malicious add-on with minimal user interaction, which would enable Remote Code Execution (RCE) within the Home Assistant application. 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.
Weakness: CWE-1021
Which versions are affected by CVE-2023-41897?
It affects 1 product.
Products include Home-Assistant Home-Assistant.
How do I fix CVE-2023-41897?
No fix has been published for CVE-2023-41897 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-41897 being exploited?
There is no known exploitation of CVE-2023-41897 in the wild and no public exploit code.
Other vulnerabilities in home-assistant core
- CVE-2023-27482 Auth bypass in core
- CVE-2023-41895 Cross-site Scripting via auth_callback login in Home Assistant Core
- CVE-2026-54317 Home Assistant: Konnected alarm-panel switch state and zone topology disclosed to unauthenticated actors on the LAN
- CVE-2020-36517 Information disclosure in n/a
- CVE-2018-21019 Home Assistant information disclosure vulnerability