CVE-2022-31777: Apache Spark XSS vulnerability in log viewer UI Javascript
Vulnerability summary
CVE-2022-31777 is a medium (CVSS 5.4) vulnerability in apache software foundation apache spark. EPSS estimates a 1.83% chance of exploitation in the next 30 days, higher than 79.6% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 01-11-2022PublishedVulnerability first disclosed.
- 06-05-2025Last modifiedVulnerability information updated.
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 metrics
4 scores · 4 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · MavenEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.83%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 1.82% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Org.apache.spark5 products
- spark-core_2.10All versions (No fix recorded)
- spark-core_2.11All versions (No fix recorded)
- spark-core_2.12< 3.2.2 | ≥ 3.3.0, < 3.3.1
- spark-core_2.13< 3.2.2 | ≥ 3.3.0, < 3.3.1
- spark-core_2.9.3All versions (No fix recorded)
Apache1 product
- sparkEOL< 3.2.2 | 3.3.0
Apache software foundation1 product
- apache spark3.3.0 | ≥ 3.2.1 and earlier, ≤ 3.2.1
PyPI1 product
- pyspark< 3.2.2 | ≥ 3.3.0, < 3.3.1
4 vendors · 8 products
References
8 links- github.com/apache/sparkPACKAGE