CVE-2021-3275 Cross-site scripting in n/a

Medium 6.1 Published Updated

Unauthenticated stored XSS in TP-Link routers allows attackers to inject scripts via hostname, potentially leading to code execution or account takeover.

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-2021-3275?

CVE-2021-3275 is a medium-severity cross-site scripting vulnerability in n/a, published on 26 Mar 2021. 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

Unauthenticated stored cross-site scripting (XSS) exists in multiple TP-Link products including WIFI Routers (Wireless AC routers), Access Points, ADSL + DSL Gateways and Routers, which affects TD-W9977v1, TL-WA801NDv5, TL-WA801Nv6, TL-WA802Nv5, and Archer C3150v2 devices through the improper validation of the hostname. Some of the pages including dhcp.htm, networkMap.htm, dhcpClient.htm, qsEdit.htm, and qsReview.htm and use this vulnerable hostname function (setDefaultHostname()) without sanitization.

Weakness: CWE-79

Which versions are affected by CVE-2021-3275?

It affects 5 products.

Products include Tp-Link Archer-C3150 Firmware, Tp-Link Td-W9977 Firmware, Tp-Link Tl-Wa801n Firmware, Tp-Link Tl-Wa801nd Firmware, Tp-Link Tl-Wr802n Firmware.

How do I fix CVE-2021-3275?

No fix has been published for CVE-2021-3275 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-2021-3275 being exploited?

There is no known exploitation of CVE-2021-3275 in the wild and no public exploit code.

Sources

Also known as GHSA-7ww5-8q39-hvcc.

Is CVE-2021-3275 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free