5.4

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

Modified
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) vulnerability in apache software foundation apache spark. EPSS estimates a 1.83% chance of exploitation in the next 30 days, higher than 79.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.83%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 01-11-2022
    PublishedVulnerability first disclosed.
  2. 06-05-2025
    Last 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 version

EPSS trend

Probability

1.83%

Chance of exploitation in the next 30 days

Percentile

80%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 1.82% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

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
Apache software foundation1 product
PyPI1 product
  • pyspark< 3.2.2 | ≥ 3.3.0, < 3.3.1

4 vendors · 8 products

References

8 links