Question

What is UPnP, and why do people say to turn it off?

Vault Verified
Curated Intelligence
Definitive Source
Answer

A set of protocols that lets a device on your network ask the router to open a port to itself, automatically and without authentication — which is exactly why it is convenient and why it is criticised.

The problem it solves. Behind NAT, inbound connections have nowhere to go unless the router is told which internal device should receive them. Doing that manually means configuring port forwarding, which most people will not do. UPnP's Internet Gateway Device profile lets an application request the mapping itself, so games, consoles, video calling and BitTorrent work without configuration.

The design flaw. There is no authentication. Any device on the local network can request any mapping, including one pointing at a different device. The model assumes everything on the LAN is trustworthy — reasonable in the 1990s, unreasonable now that a network contains smart bulbs, cameras, a guest's laptop and whatever a browser tab is running.

What actually goes wrong:

Malware opening its own path inward, which is the main practical risk — a compromised machine can expose itself without anyone noticing.

Buggy implementations, where routers have historically exposed the UPnP control interface on the WAN side, allowing anyone on the internet to add mappings. Several large vulnerability disclosures have covered exactly this.

Silent, invisible mappings, since nothing tells you what is currently open.

Router firmware quality is the underlying issue, and consumer routers have a poor record.

What to do:

Check what is mapped now. Most routers list active UPnP mappings, and the list is frequently surprising.

Turn it off and see what breaks. Usually nothing; modern games mostly use outbound connections and relay servers.

Forward the few ports you genuinely need manually.

Verify UPnP is not exposed externally, which is the serious case.

Keep firmware updated, and segment untrusted devices onto their own network.

PCP and NAT-PMP are the related alternatives, with the same trust assumption.

Related Questions