AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

Apache SparkGHSA-43xg-8wmj-cw8h

Apache Spark vulnerable to Log Injection

Apache Spark

CVE-2022-31777 · Published Nov 1, 2022 · updated Dec 18, 2025

Medium5.4
Fix: upgrade to 3.2.2 or later (2 fixed versions below)
GitHub advisory

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 versions

PackageAffectedFixed in
org.apache.spark:spark-core_2.12
Maven
< 3.2.23.2.2
>= 3.3.0, < 3.3.13.3.1
org.apache.spark:spark-core_2.13
Maven
< 3.2.23.2.2
>= 3.3.0, < 3.3.13.3.1
pyspark
PyPI
< 3.2.23.2.2
>= 3.3.0, < 3.3.13.3.1
Details and references

More Apache Spark advisories

All Apache Spark