Live threats

All CVEs / Apache

CVE-2022-31777Apache Spark

Medium 5.4

Priority
33
CVSS 3.1
5.4
EPSS
1.8%
probability of exploitation in 30 days · percentile 78
Auth required
Yes
Published
Nov 1, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Spark.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.spark:spark-core_2.10 all no fixed version —
Maven org.apache.spark:spark-core_2.11 all no fixed version —
Maven org.apache.spark:spark-core_2.12 < 3.2.2 3.2.2 —
Maven org.apache.spark:spark-core_2.12 ≥ 3.3.0 < 3.3.1 3.3.1 —
Maven org.apache.spark:spark-core_2.13 < 3.2.2 3.2.2 —
Maven org.apache.spark:spark-core_2.13 ≥ 3.3.0 < 3.3.1 3.3.1 —
Maven org.apache.spark:spark-core_2.9.3 all no fixed version —
PyPI pyspark < 3.2.2 3.2.2 pip install "pyspark>=3.2.2"
PyPI pyspark ≥ 3.3.0 < 3.3.1 3.3.1 pip install "pyspark>=3.3.1"
PyPI pyspark < 3.2.2 3.2.2 pip install "pyspark>=3.2.2"

Per OSV / GitHub Advisories (GHSA-43xg-8wmj-cw8h, PYSEC-2022-42976). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachespark< 3.2.2
apachespark3.3.0

Official sources

References

Links published by the sources. Open them with care.