SecurityContext

CVE-2021-22331: Huawei - Reflected XSS

  • Cve: CVE-2021-22331
  • Name: Huawei - Reflected XSS
  • Description: There is a JavaScript injection vulnerability in certain Huawei smartphones. A module does not verify some inputs sufficiently. Attackers can exploit this vulnerability by sending a malicious application request to launch JavaScript injection. This may compromise normal service. Affected product versions include HUAWEI P30 versions earlier than 10.1.0.165(C01E165R2P11), 11.0.0.118(C635E2R1P3), 11.0.0.120(C00E120R2P5), 11.0.0.138(C10E4R5P3), 11.0.0.138(C185E4R7P3), 11.0.0.138(C432E8R2P3), 11.0.0.138(C461E4R3P3), 11.0.0.138(C605E4R1P3), and 11.0.0.138(C636E4R3P3).
  • Impact: Attackers can execute arbitrary JavaScript in the context of the affected app, potentially leading to session hijacking or data theft.
  • Remediation: Update to version 10.1.0.165(C01E165R2P11) or later.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec, information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs to send a malicious application request
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00727
  • Epss percentile: 0.55095
  • Assignee: [email protected]
  • Published at: 2021-04-28T13:15:08Z
  • Age in days: 2036
  • Modified at: 2026-06-17T03:37:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22331
  • Nvd status: modified
  • Checked, none or zero: 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-74Improper Neutralization of Special Elements in Output Used by a Downstream Component

References

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

Products

ProductAffectedPlatform boundSourcesUrl
huawei:p30_firmware< 11.0.0.138(c636e4r3p3), < 11.0.0.118(c635e2r1p3), < 11.0.0.138(c605e4r1p3), < 11.0.0.138(c461e4r3p3), < 11.0.0.138(c432e8r2p3), < 11.0.0.138(c185e4r7p3), < 10.1.0.165(c01e165r2p11), < 11.0.0.120(c00e120r2p5), < 11.0.0.138(c10e4r5p3)yesnvd/v1/products/huawei/p30_firmware

Index

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

Exploitation

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