CVE-2022-31777: apache software foundation apache spark Injection
CVSS: 5.4v3.1MediumModified
AliasesGHSA-43xg-8wmj-cw8hBIT-spark-2022-31777PYSEC-2022-42976
Published 01-11-2022Last modified 06-05-2025
Vulnerability summary
CVE-2022-31777 is a medium (CVSS 5.4) Injection vulnerability in apache software foundation apache spark. EPSS estimates a 1.62% chance of exploitation in the next 30 days, higher than 75.6% of scored vulnerabilities.
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)EPSS score
1.62%
0%100%
Low · +0.03 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
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 versionMedium 5.4Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NSourcesAll 4 agree
- 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.62%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
+0.03 pp
From 1.58% on 18-09-2026
18-09-202618-10-2026
EPSS score1.62%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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