Skip to content
Fencer Vulns
medium 5.4

CVE-2022-31777 json

Apache Spark XSS vulnerability in log viewer UI Javascript

published 2022-11-01 4 y ago modified 2026-09-08 2 mo ago also BIT-spark-2022-31777 , EUVD-2022-0218 , GHSA-43xg-8wmj-cw8h , PYSEC-2022-42976

cvss
5.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.8%
EPSS 1.8% chance of exploitation in 30 days, percentile 78%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi pyspark 3.2.2, 3.3.1
  • maven org.apache.spark:spark-core_2.13 3.2.2, 3.3.1
  • maven org.apache.spark:spark-core_2.12 3.2.2, 3.3.1
  • bitnami spark 3.2.2, 3.3.1
  • apache spark 3.2.2

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-31777 updated cvss 5.4

apache-spark: XSS vulnerability in log viewer UI Javascript

  • Red Hat Fuse 7 apache-spark apache-spark Red Hat Integration Camel K 1 apache-spark apache-spark Red Hat Integration Camel Quarkus 1 apache-spark apache-spark
    affected: no fix planned “Will not fix”
  • Red Hat JBoss Data Grid 7 apache-spark apache-spark
    affected: no fix planned “Out of support scope”
  • Red Hat RHINT Camel-Springboot 3.20.1
    fixed: vendor fix RHSA-2023:2100

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

1.82% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
GitHub 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CNA 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
OSV 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
pypi pyspark
<3.2.2
>=3.3.0, <3.3.1
3.2.2
3.3.1
maven org.apache.spark:spark-core_2.9.3
all versions
no fix listed
maven org.apache.spark:spark-core_2.13
<3.2.2
>=3.3.0, <3.3.1
3.2.2
3.3.1
maven org.apache.spark:spark-core_2.12
<3.2.2
>=3.3.0, <3.3.1
3.2.2
3.3.1
maven org.apache.spark:spark-core_2.11
all versions
no fix listed
maven org.apache.spark:spark-core_2.10
all versions
no fix listed
bitnami spark
<3.2.2
>=3.3.0, <3.3.1
3.2.2
3.3.1

Affected products

  • Apache Software Foundation Apache Spark

Classification

Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.