# CVE-2026-32773: Apache Spark History Server XSS in job names

Source: https://junglewise.ai/threats/cve-2026-32773-apache-spark-history-server-xss-in-job-names  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-02. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-32773 · Severity: medium · CVSS 6.1 · Published 2026-09-02

Spark History Server is a web interface that displays information about completed Apache Spark jobs. A vulnerability allows a malicious job to inject unescaped HTML and JavaScript into the history page, potentially allowing an attacker with job-submission privileges to perform actions on behalf of a user with higher privileges who visits the history page. This could lead to unauthorized changes to Spark cluster configuration or job submission.

Technologies: [Apache Spark](https://junglewise.ai/threats/technologies/spark), [org.apache.spark:spark-core_2.12 (Maven)](https://junglewise.ai/threats/technologies/org-apache-spark-spark-core-2-12), [org.apache.spark:spark-core_2.13 (Maven)](https://junglewise.ai/threats/technologies/org-apache-spark-spark-core-2-13), [pyspark (PyPI)](https://junglewise.ai/threats/technologies/pyspark). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache), [Maven](https://junglewise.ai/threats/vendors/maven), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-32773 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-32773 being exploited in the wild.

**How severe is CVE-2026-32773?** Medium severity, with a CVSS score of 6.1, published 2 September 2026.

**Which products and versions are affected?** Apache Spark before 3.5.8; org.apache.spark:spark-core_2.12 (Maven) >= 3.0.0, < 3.5.8, ECOSYSTEM:introduced=3.0.0,fixed=3.5.8; org.apache.spark:spark-core_2.13 (Maven) >= 3.0.0, < 3.5.8, ECOSYSTEM:introduced=3.0.0,fixed=3.5.8; pyspark (PyPI) >= 3.0.0, < 3.5.8, ECOSYSTEM:introduced=3.0.0,fixed=3.5.8.

**Is there a fix for CVE-2026-32773?** Yes. org.apache.spark:spark-core_2.12 (Maven): upgrade to 3.5.8 or later; org.apache.spark:spark-core_2.13 (Maven): upgrade to 3.5.8 or later; pyspark (PyPI): upgrade to 3.5.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-32773 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-32773?** Check whether you run Apache Spark, org.apache.spark:spark-core_2.12 (Maven), org.apache.spark:spark-core_2.13 (Maven) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.spark:spark-core_2.12 (Maven): upgrade to 3.5.8 or later

  ```sh
  # set org.apache.spark:spark-core_2.12 to 3.5.8 in your pom.xml or build.gradle
  ```

- org.apache.spark:spark-core_2.13 (Maven): upgrade to 3.5.8 or later

  ```sh
  # set org.apache.spark:spark-core_2.13 to 3.5.8 in your pom.xml or build.gradle
  ```

- pyspark (PyPI): upgrade to 3.5.8 or later

  ```sh
  pip install "pyspark>=3.5.8"
  ```


## Technical details

The Spark History Server fails to properly escape user-supplied input (likely from Spark job names or configuration) when rendering it in the web frontend, allowing Cross-Site Scripting (XSS) injection. An attacker with permissions to submit Spark jobs can craft a malicious job name containing JavaScript code that executes in the browser of any administrator or high-privilege user who views the Spark History Server web interface. This requires the attacker to have job-submission privileges and a victim with higher permissions to visit the affected page. The vulnerability is fixed in Spark 3.5.8 and later versions.

## Affected products

- Apache Spark before 3.5.8

## Identifiers

- CVE-2026-32773
- BIT-SPARK-2026-32773
- GHSA-9437-39hj-3c93
- PYSEC-2026-3966

## Timeline

- 2026-09-02: disclosed

## References

- [https://repo.maven.apache.org/maven2](https://repo.maven.apache.org/maven2)
- [https://lists.apache.org/thread/k36prh3oxl1z6ov7w8rpmfnt07hmzw3v](https://lists.apache.org/thread/k36prh3oxl1z6ov7w8rpmfnt07hmzw3v)

## Related threats

- [Apache Spark: Spark History Server Code Execution Vulnerability](https://junglewise.ai/threats/cve-2025-54920-apache-spark-spark-history-server-code-execution-vulnerability)
- [Apache Spark Inadequate Encryption Strength in RPC Communication](https://junglewise.ai/threats/cve-2025-55039-apache-spark-inadequate-encryption-strength-in-rpc-communication)
- [Apache Spark UI vulnerable to Command Injection](https://junglewise.ai/threats/cve-2023-32007-apache-spark-ui-vulnerable-to-command-injection)
- [Apache Spark privilege escalation via classpath injection](https://junglewise.ai/threats/cve-2023-22946-apache-spark-privilege-escalation-via-classpath-injection)
- [Apache Spark vulnerable to Log Injection](https://junglewise.ai/threats/cve-2022-31777-apache-spark-vulnerable-to-log-injection)
