# CVE-2022-31777: Apache Spark XSS vulnerability in log viewer UI Javascript

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.75%, higher than 78% of CVEs (2026-11-30)
- Published: 2022-11-01T00:00:00.000Z
- Modified: 2026-09-08T08:48:19.492Z
- Also known as: GHSA-43xg-8wmj-cw8h, BIT-SPARK-2022-31777, PYSEC-2022-42976
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Spark: 3.3.0; from 3.2.1 and earlier up to 3.2.1
- pyspark (PyPI): before 3.2.2; from 3.3.0 before 3.3.1
- org.apache.spark:spark-core_2.9.3 (Maven): all versions
- org.apache.spark:spark-core_2.13 (Maven): before 3.2.2; from 3.3.0 before 3.3.1
- org.apache.spark:spark-core_2.12 (Maven): before 3.2.2; from 3.3.0 before 3.3.1
- org.apache.spark:spark-core_2.11 (Maven): all versions
- org.apache.spark:spark-core_2.10 (Maven): all versions
- apache spark: before 3.2.2; 3.3.0
- spark (Bitnami): before 3.2.2; from 3.3.0 before 3.3.1

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q> (advisory, article, mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/11/01/14> (discussion, mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31777> (advisory, web)
- <https://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad> (web)
- <https://github.com/apache/spark> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml> (web)
- <https://web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505> (web)
- <https://github.com/advisories/GHSA-43xg-8wmj-cw8h> (advisory)

## Sources

- CVE List: [CVE-2022-31777](https://www.cve.org/CVERecord?id=CVE-2022-31777), CVE Terms of Use, modified 2025-05-06
- GitHub Advisory Database: [GHSA-43xg-8wmj-cw8h](https://github.com/advisories/GHSA-43xg-8wmj-cw8h), CC-BY-4.0, modified 2025-12-18
- NVD: [CVE-2022-31777](https://nvd.nist.gov/vuln/detail/CVE-2022-31777), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-42976](https://osv.dev/vulnerability/PYSEC-2022-42976), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-SPARK-2022-31777](https://osv.dev/vulnerability/BIT-SPARK-2022-31777), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-31777 · Whole record: https://cve.day/CVE-2022-31777.json · Rebuilt by cve.day 2026-11-25T22:58:16.118Z
