Advisory

GHSA-43xg-8wmj-cw8h

Also known as: BIT-spark-2022-31777, CVE-2022-31777, PYSEC-2022-42976

Summary

Apache Spark vulnerable to Log Injection

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-11-01 19:00 UTC
Modified
2025-12-18 16:17 UTC

Affected packages and fixes

pyspark

PyPI · All systems

Affected

  • introduced 0, fixed 3.2.2 (ecosystem)

Fixed versions

3.2.2

Fix

  • Fixed version 3.2.2
    pip install --upgrade pyspark==3.2.2

pyspark

PyPI · All systems

Affected

  • introduced 3.3.0, fixed 3.3.1 (ecosystem)

Fixed versions

3.3.1

Fix

  • Fixed version 3.3.1
    pip install --upgrade pyspark==3.3.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences