BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-31659 in Tp-Link Tl-Sg2005 and 3 more products

High 8.8

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 t...

Affects 4 products from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
EPSS0.6%
EPSS percentile40th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Tp-Link Tl-Sg2005 (device and firmware) 1.0.0
Tp-Link Tl-Sg2008 (device and firmware) 1.0.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-31659
BreachSpider IDBS-2021-GLOBAL-077915-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2021-06-10
Last modified2026-07-09
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-352: Cross-Site Request Forgery (CSRF)

Web application does not verify that a request was intentionally sent by the authenticated user.

Related attack patterns (CAPEC)

CAPEC-462 Cross-Domain Search Timing via CWE-352

CAPEC-467 Cross Site Identification via CWE-352

CAPEC-62 Cross Site Request Forgery via CWE-352

CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) via CWE-352

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

The TP-Link TL-SG2005, TL-SG2008, and similar switches are vulnerable to Cross Site Request Forgery (CSRF), which could allow an attacker to modify the switch's password and tamper with the configuration file.

The vulnerability arises from the lack of additional token authentication for configuration changes, which are transmitted via the URL. An attacker could exploit this by tricking an authenticated administrator into clicking a malicious link, leading to unauthorized configuration changes.

Questions

What is CVE-2021-31659?

The TP-Link TL-SG2005, TL-SG2008, and similar switches are vulnerable to Cross Site Request Forgery (CSRF), which could allow an attacker to modify the switch's password and tamper with the configuration file.

What is the CVSS score for CVE-2021-31659?

CVE-2021-31659 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.6%.

Is CVE-2021-31659 actively exploited?

No confirmed active exploitation of CVE-2021-31659 as of 2026-09-25.

How do I remediate CVE-2021-31659?

Priority: IMMEDIATE. PSIRT: [email protected]

What systems are affected by CVE-2021-31659?

CVE-2021-31659 affects Tp-Link Tl-Sg2005, Tl-Sg2008.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Tp-Link","product":"Tl-Sg2005","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-09.