This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy

Security Advisory - Cross-Site Scripting(XSS) Vulnerability in Huawei WS318n Product

  • SA No:huawei-sa-20211229-01-xss
  • Initial Release Date: 2021-12-29
  • Last Release Date: 2021-12-29

There is a Cross-Site Scripting(XSS) vulnerability in HUAWEI WS318n product when processing network settings. Due to insufficient validation of user input, a local authenticated attacker could exploit this vulnerability by injecting special characters. Successful exploit could cause certain information disclosure. (Vulnerability ID: HWPSIRT-2021-57405)

This vulnerability has been assigned a Common Vulnerabilities and Exposures (CVE) ID: CVE-2021-40041.

Huawei has released software updates to fix this vulnerability. This advisory is available at the following link:

http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20211229-01-xss-en

Product Name

Affected Version

Resolved Product and Version

WS318n-21

10.0.2.2

10.0.2.6(SP2)

10.0.2.5

10.0.2.6



Successful exploit could cause certain information disclosure.

The vulnerability classification has been performed by using the CVSSv3 scoring system (http://www.first.org/cvss/specification-document).

Base Score: 2.4 (AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N)

Temporal Score: 2.3 (E:F/RL:O/RC:C)

This vulnerability can be exploited only when the following conditions are present:

Attackers can log in to the system with high permissions.

Vulnerability details:

There is a Cross-Site Scripting(XSS) vulnerability in HUAWEI WS318n product when processing network settings. Due to insufficient validation of user input, a local authenticated attacker could exploit this vulnerability by injecting special characters. Successful exploit could cause certain information disclosure.

The product that supports automatic update will receive a system update prompt. You can install the update to fix the vulnerability.

This vulnerability was discovered by external security researcher.


2021-12-29 V1.0 INITIAL


Huawei adheres to protecting the ultimate interests of users with best efforts and the principle of responsible disclosure and deal with product security issues through our response mechanism.

To enjoy Huawei PSIRT services and obtain Huawei product vulnerability information, please visit http://www.huawei.com/en/psirt.

To report a security vulnerability in Huawei products and solutions, please send it to PSIRT@huawei.com. For details, please visit http://www.huawei.com/en/psirt/report-vulnerabilities.

This document is provided on an "AS IS" basis and does not imply any kind of guarantee or warranty, either express or implied, including the warranties of merchantability or fitness for a particular purpose. In no event shall Huawei or any of its directly or indirectly controlled subsidiaries or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. Your use of the document, by whatsoever means, will be totally at your own risk. Huawei is entitled to amend or update this document from time to time.