CVE-2022-31777
JSON

5.4medium

Apache Spark XSS vulnerability in log viewer UI Javascript

Severity
5.4medium CVSS:3.1 by CISA-ADP
Exploit likelihood
1.75% (higher than 78% of CVEs)
Published
Last changed
Assigned by
apache
Also known as
GHSA-43xg-8wmj-cw8hBIT-SPARK-2022-31777PYSEC-2022-42976

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.

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache Spark3.3.0, from 3.2.1 and earlier up to 3.2.1CVE List
pyspark (PyPI)before 3.2.2, from 3.3.0 before 3.3.1GitHub Advisory Database, PyPA Advisory Database
org.apache.spark:spark-core_2.9.3 (Maven)all versionsGitHub Advisory Database
org.apache.spark:spark-core_2.13 (Maven)before 3.2.2, from 3.3.0 before 3.3.1GitHub Advisory Database
org.apache.spark:spark-core_2.12 (Maven)before 3.2.2, from 3.3.0 before 3.3.1GitHub Advisory Database
org.apache.spark:spark-core_2.11 (Maven)all versionsGitHub Advisory Database
org.apache.spark:spark-core_2.10 (Maven)all versionsGitHub Advisory Database
apache sparkbefore 3.2.2, 3.3.0NVD
spark (Bitnami)before 3.2.2, from 3.3.0 before 3.3.1Bitnami Vulnerability Database

All scores

CISA-ADP5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-74

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad de Cross-Site Scripting (XSS) Almacenado en Apache Spark 3.2.1 y anteriores, y 3.3.0, permite a atacantes remotos ejecutar JavaScript arbitrario en el navegador web de un usuario, al incluir un payload malicioso en los registros que serían devuelto en registros representados en la interfaz de usuario.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31777 changed 2025-05-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-43xg-8wmj-cw8h changed 2025-12-18CC-BY-4.0
NVDCVE-2022-31777 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-42976 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-SPARK-2022-31777 changed 2026-09-08Apache-2.0