CVE-2021-22331

mediumpriority · track · 30EPSS 0.007 · 54 %ileEUUS
grimoire priorityP3 · Track
Exploitable?
—
no known exploitation
Likely / severe?
0.72% (54th) EPSS
CVSS 5 · medium
Is it mine?
10 products
Check your exposure
Who says so?
3 sources
cnnvd · enisa_euvd · nvd

EPSS · scored 2026-10-27

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

01

cvss

Technical severity, 0–10. One row per scoring source.

7.5
010

base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5

v2.05mediumAV:N/AC:L/Au:N/C:N/I:N/A:Pprimary · NVD / NIST USexploitability 10 · impact 2.9
v3.17.5highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hprimary · NVD / NIST USexploitability 3.9 · impact 3.6
v3.16.9mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:Usecondary · CVSS-BT (t0sche)
02

weaknesses

The CWE weakness classes this flaw belongs to.

03

affected products (10)

Products and version ranges known to be affected.

  • n/a HUAWEI P30≤ Versions earlier than 10.1.0.165(C01E165R2P11),Versions earlier than 11.0.0.118(C635E2R1P3),Versions earlier than 11.0.0.120(C00E120R2P5),Versions earlier than 11.0.0.138(C10E4R5P3),Versions earlier than 11.0.0.138(C185E4R7P3),Versions earlier than 11.0.0.138(C432E8R2P3),Versions earlier than 11.0.0.138(C461E4R3P3),Versions earlier than 11.0.0.138(C605E4R1P3),Versions earlier than 11.0.0.138(C636E4R3P3)enisa_euvdEU
  • huawei p30 firmware< 10.1.0.165\(c01e165r2p11\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.118\(c635e2r1p3\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.120\(c00e120r2p5\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.138\(c10e4r5p3\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.138\(c185e4r7p3\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.138\(c432e8r2p3\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.138\(c461e4r3p3\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.138\(c605e4r1p3\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
  • huawei p30 firmware< 11.0.0.138\(c636e4r3p3\)nvdUScpe:2.3:o:huawei:p30_firmware:*:*:*:*:*:*:*:*
04

also known as (3)

Other names and identifiers for this entity.

05

sources

Which sources assert this record, and when.

published 2021-04-28modified 2026-06-17
07

references (4)

External citations — patches, advisories, analysis.

scry

Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.

Free scan