CVE-2022-31777Apache Spark XSS vulnerability in log viewer UI Javascript
- 5.4MediumCVSS base score
- 1.8%Exploitation in 30 daysEPSS · top 21% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
A stored cross-site scripting (XSS) vulnerability in Apache Spark 3.2.1 and earlier, and 3.3.0, allows remote attackers to execute arbitrary JavaScript in the web browser of a user, by including a malicious payload into the logs which would be returned in logs rendered in the UI.
Timeline
ID reserved
By apache
- 5 months later
· 5 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.8% · top 21% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
Apache Software Foundation · Apache Spark
- affected 3.3.0
- affected 3.2.1 and earlier – ≤ 3.2.1
Affected packages
Affected packages6
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.spark:spark-core_2.10GHSA-43xg-8wmj-cw8h (opens in a new tab)
- Mavenorg.apache.spark:spark-core_2.11GHSA-43xg-8wmj-cw8h (opens in a new tab)
- Mavenorg.apache.spark:spark-core_2.12GHSA-43xg-8wmj-cw8h (opens in a new tab)
- Mavenorg.apache.spark:spark-core_2.13GHSA-43xg-8wmj-cw8h (opens in a new tab)
- Mavenorg.apache.spark:spark-core_2.9.3GHSA-43xg-8wmj-cw8h (opens in a new tab)
- PyPIpysparkGHSA-43xg-8wmj-cw8h (opens in a new tab)
What to do
Workaround: Upgrade to Apache Spark maintenance releases 3.2.2, or 3.3.1 or later
References
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0218 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-43xg-8wmj-cw8h (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-31777)Record last updated .