---
id: CVE-2026-32773
title: >-
  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
summary: >-
  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
  encourag…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-80
vendor: apache
product: spark
affected:
  - 'spark >= 3.0.0, < 3.5.8'
patched:
  - spark 3.5.8
published: '2026-09-02'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T13:04:14.690'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-32773'
references:
  - url: 'https://lists.apache.org/thread/k36prh3oxl1z6ov7w8rpmfnt07hmzw3v'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/09/01/4'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - osv
  - pip
epss: 0.00679
epssPercentile: 0.50289
ingestedAt: '2026-09-08T15:33:26.957Z'
aliases:
  - PYSEC-2026-3966
  - BIT-spark-2026-32773
ecosystem: pip
---

## Overview

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.

## Affected

- `spark >= 3.0.0, < 3.5.8`

## Remediation

Upgrade past the affected range:

- `spark 3.5.8`

## Package advisory (CVE-2026-32773)

Affected packages:

- `pyspark >= 3.0.0, < 3.5.8`

Patched in:

- `pyspark 3.5.8`

Source: https://osv.dev/vulnerability/PYSEC-2026-3966
