---
id: CVE-2021-31659
title: 'TP-Link TL-SG2005, TL-SG2008, etc'
summary: >-
  TP-Link TL-SG2005, TL-SG2008, etc. 1.0.0 Build 20180529 Rel.40524 is
  vulnerable to Cross Site Request Forgery (CSRF). All configuration information
  is placed in the URL, without any additional token authentication information.
  A maliciou…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-352
vendor: tp-link
product: tl-sg2005_firmware
affected:
  - tl-sg2005_firmware = 1.0.0
  - tl-sg2008_firmware = 1.0.0
published: '2021-06-10'
updated: '2026-07-05'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-31659'
references:
  - url: 'https://github.com/liyansong2018/CVE/tree/main/2021/CVE-2021-31659'
    label: cve@mitre.org
  - url: 'http://tp-link.com'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/liyansong2018/CVE/tree/main/2021/CVE-2021-31659'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00559
epssPercentile: 0.44202
ingestedAt: '2026-07-06T17:03:23.475Z'
---

## Overview

TP-Link TL-SG2005, TL-SG2008, etc. 1.0.0 Build 20180529 Rel.40524 is vulnerable to Cross Site Request Forgery (CSRF). All configuration information is placed in the URL, without any additional token authentication information. A malicious link opened by the switch administrator may cause the password of the switch to be modified and the configuration file to be tampered with.

## Affected

- `tl-sg2005_firmware = 1.0.0`
- `tl-sg2008_firmware = 1.0.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
