Moderate severityNVD Advisory· Published Nov 1, 2022· Updated May 6, 2025
Apache Spark XSS vulnerability in log viewer UI Javascript
CVE-2022-31777
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pysparkPyPI | < 3.2.2 | 3.2.2 |
pysparkPyPI | >= 3.3.0, < 3.3.1 | 3.3.1 |
org.apache.spark:spark-core_2.9.3Maven | >= 0 | — |
org.apache.spark:spark-core_2.13Maven | < 3.2.2 | 3.2.2 |
org.apache.spark:spark-core_2.13Maven | >= 3.3.0, < 3.3.1 | 3.3.1 |
org.apache.spark:spark-core_2.12Maven | < 3.2.2 | 3.2.2 |
org.apache.spark:spark-core_2.12Maven | >= 3.3.0, < 3.3.1 | 3.3.1 |
org.apache.spark:spark-core_2.11Maven | >= 0 | — |
org.apache.spark:spark-core_2.10Maven | >= 0 | — |
Affected products
8- osv-coords7 versionspkg:bitnami/sparkpkg:maven/org.apache.spark/spark-core_2.10pkg:maven/org.apache.spark/spark-core_2.11pkg:maven/org.apache.spark/spark-core_2.12pkg:maven/org.apache.spark/spark-core_2.13pkg:maven/org.apache.spark/spark-core_2.9.3pkg:pypi/pyspark
< 3.2.2+ 6 more
- (no CPE)range: < 3.2.2
- (no CPE)range: >= 0
- (no CPE)range: >= 0
- (no CPE)range: < 3.2.2
- (no CPE)range: < 3.2.2
- (no CPE)range: >= 0
- (no CPE)range: < 3.2.2
- Apache Software Foundation/Apache Sparkv5Range: 3.3.0
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-43xg-8wmj-cw8hghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-31777ghsaADVISORY
- www.openwall.com/lists/oss-security/2022/11/01/14ghsamailing-listWEB
- github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871adghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yamlghsaWEB
- lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6qghsaWEB
- web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505ghsaWEB
News mentions
0No linked articles in our index yet.