Router

TP-LINK TL-WR840N

Contribute

Projects for this device

Replacement firmware

Replace router software with a customizable system for network controls and community packages.

How to get started

Follow the guide for your exact router version. The first installation may use its web interface, recovery mode or a serial connection.

Setup
Firmware replacement; route varies by router
You’ll need
Exact hardware revision, an appropriate OpenWrt release and its model-specific installation guide.
v2 · Qualcomm Atheros QCA9533 Wi-Fi
Retired support documentedFlash: 4 MB · Memory: 32 MBOpen hardware record
v3 · Qualcomm Atheros QCA9533
Open hardware record
v4 · MediaTek MT7628N
Open hardware record Release listed · 25.12.5
v5 · MediaTek MT7628N
Open hardware record
v6 · MediaTek MT7628N
Open hardware record
v4 · MediaTek MT7628N Wi-Fi
Get OpenWrt firmware Release listed · 25.12.6
v2 · Qualcomm Atheros QCA9533
Open hardware record
v3 · Qualcomm Atheros QCA9533; v3 · Qualcomm Atheros QCA9533 Wi-Fi
Open hardware record
v4 · MediaTek MT7628N
Open hardware record Release listed · 25.12.5
v5 · MediaTek MT7628N; v5 · MediaTek MT7628N Wi-Fi
Open hardware record
v6 · MediaTek MT7628N; v6 · MediaTek MT7628N Wi-Fi
Retired support documentedOpen hardware record

v2 · Qualcomm Atheros QCA9533 Wi-Fi

Device support in source
Retired; check the documented hardware and older release resources.
First installation
U-Boot TFTP recovery; see forum

v3 · Qualcomm Atheros QCA9533 Wi-Fi

Device support in source
Retired; check the documented hardware and older release resources.
First installation
TP-Link TFTP

v4 · MediaTek MT7628N Wi-Fi

First installation
U-Boot TFTP recovery

v5 · MediaTek MT7628N Wi-Fi

Device support in source
Retired; check the documented hardware and older release resources.
First installation
GUI OEM

v6 · MediaTek MT7628N Wi-Fi

Device support in source
Retired; check the documented hardware and older release resources.
First installation
GUI OEM
Sources

Features & details

Check the project and hardware shown for each feature.

Device details

tp-link tl-wr840n v2 — device documentation (github.com)TP-LINK TL-WR840N v2 — TechInfoDepot (github.com)TP-LINK TL-WR840N v2 — WikiDevi (github.com)

Hardware revision
v2

Device details

tp-link tl-wr840n v3 — device documentation (github.com)TP-LINK TL-WR840N v3 — WikiDevi (github.com)Device details — v3 — Source documentation (openwrt.org)

Hardware revision
v3

Device details

tp-link tl-wr840n v4 — device documentation (github.com)Device details — v4 — Source documentation (openwrt.org)

Hardware revision
v4

Device details

tp-link tl-wr840n v5 — device documentation (github.com)Device details — v5 — Source documentation (openwrt.org)

Hardware revision
v5

Device details

tp-link tl-wr840n v6 — device documentation (github.com)Device details — v6 — Source documentation (openwrt.org)

Hardware revision
v6

Device details

TP-LINK TL-WR840N v1 (China only?) — TechInfoDepot (github.com)

Hardware revision
v1.1

Device details

TP-LINK TL-WR840N v1 — TechInfoDepot (github.com)

Hardware revision
v1

Device details

TP-LINK TL-WR840N v3 — TechInfoDepot (github.com)

Hardware revision
v3

Device details

TP-LINK TL-WR840N v4 — TechInfoDepot (github.com)

Hardware revision
v4

Device details

TP-LINK TL-WR840N v5 — TechInfoDepot (github.com)

Hardware revision
v5

Device details

TP-LINK TL-WR840N v6 — TechInfoDepot (github.com)

Hardware revision
v6

Device details

TP-LINK TL-WR840N v1 (China only?) — WikiDevi (github.com)

Hardware revision
v1.1 (China only?)

Device details

TP-LINK TL-WR840N v1 — WikiDevi (github.com)

Hardware revision
v1

Device details

TP-LINK TL-WR840N v4 — WikiDevi (github.com)

Hardware revision
v4 (EU)

Device details

TP-LINK TL-WR840N v5 — WikiDevi (github.com)

Hardware revision
v5 (ES/EU)

Device details

TP-LINK TL-WR840N v6 — WikiDevi (github.com)

Hardware revision
v6 (ES/EU)

Device details

Device details — v2 — Source documentation (openwrt.org)

Hardware revision
v2

OpenWrt · v2 · Qualcomm Atheros QCA9533 Wi-Fi

OpenWrt · v2 · Qualcomm Atheros QCA9533 Wi-Fi — v2 — Source documentation (openwrt.org)

Installation routes recorded
U-Boot TFTP recovery, see forum
Recovery routes recorded
U-Boot TFTP recovery
Availability recorded by source
Discontinued

OpenWrt · v3 · Qualcomm Atheros QCA9533 Wi-Fi

OpenWrt · v3 · Qualcomm Atheros QCA9533 Wi-Fi — v3 — Source documentation (openwrt.org)

Installation routes recorded
TP-Link TFTP
Availability recorded by source
Discontinued

OpenWrt · v4 · MediaTek MT7628N Wi-Fi

OpenWrt · v4 · MediaTek MT7628N Wi-Fi — v4 — Source documentation (openwrt.org)

Installation routes recorded
U-Boot TFTP recovery
Recovery routes recorded
U-Boot TFTP recovery
Availability recorded by source
Discontinued

OpenWrt · v5 · MediaTek MT7628N Wi-Fi

OpenWrt · v5 · MediaTek MT7628N Wi-Fi — v5 — Source documentation (openwrt.org)

Installation routes recorded
GUI OEM
Availability recorded by source
Discontinued 2017

OpenWrt · v6 · MediaTek MT7628N Wi-Fi

OpenWrt · v6 · MediaTek MT7628N Wi-Fi — v6 — Source documentation (openwrt.org)

Installation routes recorded
GUI OEM
Recovery routes recorded
TFTP generic
Availability recorded by source
Available 2018

Hardware differences

Security

Saved scan

From our saved security research.

Model advisories

Selected highlights

Prioritized by known exploitation, severity, then date.

TL-WR840N

TP-Link TL-WR841N dropbearpwd Improper Authentication Information Disclosure Vulnerability

CVE-2023-50224

Affected firmware
V2 V3
Fix
Fix details in the linked record
Read zdi CVE record
Details and sources

TP-Link TL-WR841N dropbearpwd Improper Authentication Information Disclosure Vulnerability. This vulnerability allows network-adjacent attackers to disclose sensitive information on affected installations of TP-Link TL-WR841N routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the httpd service, which listens on TCP port 80 by default. The issue results from improper authentication. An attacker can leverage this vulnerability to disclose stored credentials, leading to further compromise. Was ZDI-CAN-19899.

ZDI-23-1808 — TL-WR840N (zerodayinitiative.com) ↗vendor-provided URL — TL-WR840N (tp-link.com) ↗vendor-advisory — TL-WR840N (tp-link.com) ↗

CVSS 8.5 (v4.0)

TL-WR840N v6

Authenticated Command Injection on TP-Link TL-WR802N, TL-WR841N and TL-WR840N

CVE-2026-3227

Affected firmware
Before V6_260304
Fix
Fix details in the linked record
Read TPLink CVE record
Details and sources

A command injection vulnerability was identified in TP-Link TL-WR802N v4, TL-WR841N v14, and TL-WR840N v6 due to improper neutralization of special elements used in an OS command. In the router configuration import function allows an authenticated attacker to upload a crafted configuration file that results in execution of OS commands with root privileges during port-trigger processing. Successful exploitation allows an authenticated attacker to execute system commands with root privileges, leading to full device compromise.

CVSS 6.8 (v3.1)

TP-LINK TL-WR840N

TP-Link TL-WR840N EU v6.20 was discovered to contain insecure protections for its UART console

CVE-2022-29402

Affected firmware
Version details in source scope
Fix
Fix details in the linked record
Read mitre CVE record
Details and sources

TP-Link TL-WR840N EU v6.20 was discovered to contain insecure protections for its UART console. This vulnerability allows attackers to connect to the UART port via a serial connection and execute commands as the root user without authentication.

TP-LINK TL-WR840N

Tp-Link TL-WR840N (EU) v6.20 Firmware (0.9.1 4.17 v0001.0 Build 201124 Rel.64328n) is vulnerable to Buffer Overflow via the Password reset feature.

CVE-2021-46122

Affected firmware
Version details in source scope
Fix
Fix details in the linked record
Read mitre CVE record
Details and sources

Tp-Link TL-WR840N (EU) v6.20 Firmware (0.9.1 4.17 v0001.0 Build 201124 Rel.64328n) is vulnerable to Buffer Overflow via the Password reset feature.

TP-LINK TL-WR840N

TP-LINK TL-WR840N(ES)_V6.20 was discovered to contain a buffer overflow via the X_TP_ClonedMACAddress parameter.

CVE-2022-26642

Affected firmware
Version scope unspecified in source
Fix
Fix details in the linked record
Read mitre CVE record
Details and sources

TP-LINK TL-WR840N(ES)_V6.20 was discovered to contain a buffer overflow via the X_TP_ClonedMACAddress parameter.

Check more security advisories for this device · CVE.org