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 mal
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.spark:spark-core_2.10 | all versions | no fix |
| Java / Kotlin (Maven) | org.apache.spark:spark-core_2.11 | all versions | no fix |
| Java / Kotlin (Maven) | org.apache.spark:spark-core_2.12 | < 3.2.2, >= 3.3.0, < 3.3.1 | 3.2.2, 3.3.1 |
| Java / Kotlin (Maven) | org.apache.spark:spark-core_2.13 | < 3.2.2, >= 3.3.0, < 3.3.1 | 3.2.2, 3.3.1 |
| Java / Kotlin (Maven) | org.apache.spark:spark-core_2.9.3 | all versions | no fix |
| Python (PyPI) | pyspark | < 3.2.2 | 3.2.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-31777
- https://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad
- https://github.com/apache/spark
- https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml
- https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q
- https://web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505
- http://www.openwall.com/lists/oss-security/2022/11/01/14
- https://github.com/advisories/GHSA-43xg-8wmj-cw8h
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-74- Platform
- Java / Kotlin (Maven), Python (PyPI)
- Package
org.apache.spark:spark-core_2.10, org.apache.spark:spark-core_2.11, org.apache.spark:spark-core_2.12- Disclosed
- 01.11.2022
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-43xg-8wmj-cw8h - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2022-42976 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: org.apache.spark:spark-core_2.10
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 9
- First → latest
- 09.2017 03.2026
- Without a fix
- 5
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 3
- Medium 5
Disclosures per year
- 2017: 1
- 2018: 4
- 2019: 1
- 2020: 0
- 2021: 0
- 2022: 2
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 1
-
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 mal this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.