VDB
Sign up
MEDIUM6.1

PYSEC-2026-3966

Quick fix

PYSEC-2026-3966 — pyspark: upgrade to the fixed version with the command below.

pip install --upgrade 'pyspark>=3.5.8'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pyspark
Introduced in: 3.0.0Fixed in: 3.5.8
Fixpip install --upgrade 'pyspark>=3.5.8'

References