Medium severity · published Nov 1, 2022
CVE-2022-31777
Apache Spark XSS vulnerability in log viewer UI Javascript
5.4
CVSS
1.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.6% · higher than 76% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AS
Apache Spark · Apache Software Foundation
3.3.0; 3.2.1 and earlier through 3.2.1 · source: vendor
SP
Spark · Apache
before 3.2.2; 3.3.0 · source: NVD
Affected product
AS
Apache Spark
Apache Software Foundation
More from Apache Spark
8.8
CVE-2022-33891
Apache Spark shell command injection vulnerability via Spark UI
6.1
CVE-2026-32773
Apache Spark: XSS Vulnerability in Spark Web 3.5.4
5.9
CVE-2024-23945
Apache Hive, Apache Spark, Apache Spark: CookieSigner exposes the correct signature when message verification fails
5.5
CVE-2018-11760
When using PySpark , it's possible for a different local user to connect to the Spark application and impersonate the user running the Spark application
4.2
CVE-2018-11770
From version 1.3.0 onward, Apache Spark's standalone master exposes a REST API for job submission, in addition to the submission mechanism used by spark-submit