# CVE-2021-40041: There is a Cross-Site Scripting(XSS) vulnerability in HUAWEI WS318n product when processing network settings.

- Severity: Medium 4.2 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2022-01-07T22:39:24.000Z
- Modified: 2026-06-17T04:06:26.540Z
- Weaknesses: CWE-79
- Assigned by: huawei

## Description

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. Affected product versions include: WS318n-21 10.0.2.2, 10.0.2.5 and 10.0.2.6.

(As written by CVE List.)

## Affected

- WS318n-21: 10.0.2.2; 10.0.2.5; 10.0.2.6
- huawei ws318n-21_firmware: 10.0.2.2; 10.0.2.5; 10.0.2.6

## Every score

- NVD: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 1.9 Low `AV:L/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://www.huawei.com/en/psirt/security-advisories/huawei-sa-20211229-01-xss-en> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-40041](https://www.cve.org/CVERecord?id=CVE-2021-40041), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-40041](https://nvd.nist.gov/vuln/detail/CVE-2021-40041), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40041 · Whole record: https://cve.day/CVE-2021-40041.json · Rebuilt by cve.day 2026-11-25T22:58:06.440Z
