CVE-2026-32773: Apache Spark History Server allows stored cross-site scripting through unescaped application names
There is a lack of XSS escaping in the Spark History Server prior to 3.5.8 which allows a malicious Spark job to generate arbitrary unescaped frontend code which could lead to a minimal privilege escalation in browser. Users are encouraged to upgrade to Spark 3.5.8 or later.
Published Sep 2, 2026 · Updated Oct 5, 2026
Affected packages
pyspark
- Ecosystem
- PyPI
- Affected
- >= 3.0.0, < 3.5.8
- Fixed in
- 3.5.8
- Check
pip show pyspark
org.apache.spark:spark-core_2.12
- Ecosystem
- Maven
- Affected
- >= 3.0.0, < 3.5.8
- Fixed in
- 3.5.8
- Check
mvn dependency:tree -Dincludes=org.apache.spark:spark-core_2.12
org.apache.spark:spark-core_2.13
- Ecosystem
- Maven
- Affected
- >= 3.0.0, < 3.5.8
- Fixed in
- 3.5.8
- Check
mvn dependency:tree -Dincludes=org.apache.spark:spark-core_2.13
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
There is a lack of XSS escaping in the Spark History Server prior to 3.5.8 which allows a malicious Spark job to generate arbitrary unescaped frontend code which could lead to a minimal privilege escalation in browser. Users are encouraged to upgrade to Spark 3.5.8 or later.
This CVE is marked as "low" since the path to exploit requires both relatively high permissions (ability to launch a Spark job) and requires tricking a user with higher permissions to log in and visit the Spark history web page.
Users are encouraged to upgrade their Spark history servers to Spark 3.5.8 or later.
Credited to oscerd.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-32773
- https://lists.apache.org/thread/k36prh3oxl1z6ov7w8rpmfnt07hmzw3v
- https://github.com/apache/spark/pull/52851
- https://github.com/apache/spark/commit/3c83c2c6a22fe384280b99bb753b14800b7e27e1
- https://github.com/apache/spark/commit/e739b7d349dbd41b78d49bc8086cab63db057e14
- https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2026-3966.yaml
- https://issues.apache.org/jira/browse/SPARK-53747
- https://github.com/advisories/GHSA-9437-39hj-3c93
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
