SecurityContext

CVE-2021-40041: HUAWEI WS318n - Reflected XSS

  • Cve: CVE-2021-40041
  • Name: HUAWEI WS318n - Reflected XSS
  • 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.
  • Impact: Attackers can execute scripts in the context of the affected device, leading to information disclosure.
  • Remediation: Update to the latest firmware version that addresses this vulnerability or apply security patches provided by Huawei.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker needs to be authenticated
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.2
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00174
  • Epss percentile: 0.06764
  • Assignee: [email protected]
  • Published at: 2022-01-10T14:10:23Z
  • Age in days: 1779
  • Modified at: 2026-06-17T04:06:26Z
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-40041
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

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

Products

ProductAffectedPlatform boundSourcesUrl
huawei:ws318n-21_firmware= 10.0.2.6, = 10.0.2.5, = 10.0.2.2yesnvd/v1/products/huawei/ws318n-21_firmware

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts