CVE-2026-34127
Stored XSS in TP-Link TL-SG108PE v5 Switch
Publication date: 2026-05-29
Last updated on: 2026-05-29
Assigner: TPLink
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| tp-link | tl-sg108pe | to 5.6 (inc) |
| tp-link | tl-sg108pe | From 1.0.1 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a stored cross-site scripting (XSS) issue found in the web management interface of the TP-Link TL-SG108PE version 5 switch. It occurs because the SYSNAM configuration parameter is not properly sanitized during the import of configuration files. An attacker who has administrator access can inject malicious scripts into the device's configuration. These scripts are then stored and executed in the administrator's browser when they view the affected interface.
How can this vulnerability impact me? :
Exploiting this vulnerability can allow an attacker to steal session cookies, make unauthorized configuration changes, or gain access to sensitive information exposed through the device's management interface.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
Detection of this vulnerability involves checking the firmware version of the TP-Link TL-SG108PE v5 switch to see if it is vulnerable. Specifically, versions prior to TL-SG108PE(UN)_V5_1.0.1 Build 20260330 are affected.
Since the vulnerability is related to improper sanitization of the SYSNAM configuration parameter during configuration file import, reviewing the configuration files for suspicious or unexpected script content in the SYSNAM parameter may help detect exploitation.
There are no specific commands provided in the resources to detect the vulnerability directly on the device or network.
What immediate steps should I take to mitigate this vulnerability?
The immediate and recommended mitigation step is to upgrade the TP-Link TL-SG108PE v5 switch firmware to version TL-SG108PE(UN)_V5_1.0.1 Build 20260330 or later.
This firmware update fixes the vulnerability by updating validation rules for the Device Description field, restricting input to only numbers, letters, and hyphens, and preventing leading or trailing hyphens.
Until the firmware is updated, limit administrator access to trusted users only, as exploitation requires administrator privileges.