Skip to content
Heist/ feed
Back to feed
MediumFix available

pyspark — security advisory

Type: advisorySources: OSVAdvisory ID: PYSEC-2026-3966

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.

Products
pyspark
Affected versions
3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.5.5, 3.5.6, 3.5.7
Fixed versions
3.5.8
CVEs
CVE-2026-32773
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 18:13 UTC · Revision 1

Source evidence

PYSEC-2026-3966

core-osv · Original source

Published 2 Sept 2026, 11:17 UTC

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.

osv:PYSEC-2026-3966

pyspark

Fixed versions: 3.5.8

Complete source record
{
  "id": "7f1a4b4754d03aa9d5d7f4139862f1c2a32074e6a1def356139488319b823b50",
  "url": "https://osv.dev/vulnerability/PYSEC-2026-3966",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PYSEC-2026-3966",
    "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 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.",
    "evidence": "osv:PYSEC-2026-3966",
    "products": [
      {
        "name": {
          "value": "pyspark",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.5.8",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.0.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.6",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.5.7",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "PYSEC-2026-3966",
      "aliases": [
        "BIT-spark-2026-32773",
        "CVE-2026-32773",
        "GHSA-9437-39hj-3c93",
        "PYSEC-2026-3966"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.0.0"
                },
                {
                  "fixed": "3.5.8"
                }
              ]
            }
          ],
          "package": {
            "name": "pyspark",
            "purl": "pkg:pypi/pyspark",
            "ecosystem": "PyPI"
          },
          "versions": [
            "3.0.0",
            "3.0.1",
            "3.0.2",
            "3.0.3",
            "3.1.1",
            "3.1.2",
            "3.1.3",
            "3.2.0",
            "3.2.1",
            "3.2.2",
            "3.2.3",
            "3.2.4",
            "3.3.0",
            "3.3.1",
            "3.3.2",
            "3.3.3",
            "3.3.4",
            "3.4.0",
            "3.4.1",
            "3.4.2",
            "3.4.3",
            "3.4.4",
            "3.5.0",
            "3.5.1",
            "3.5.2",
            "3.5.3",
            "3.5.4",
            "3.5.5",
            "3.5.6",
            "3.5.7"
          ],
          "database_specific": {
            "source": "https://github.com/pypa/advisory-database/blob/main/vulns/pyspark/PYSEC-2026-3966.yaml"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-15T14:45:14.801306067Z",
      "provider": "osv",
      "references": [
        "https://lists.apache.org/thread/k36prh3oxl1z6ov7w8rpmfnt07hmzw3v",
        "https://github.com/advisories/GHSA-9437-39hj-3c93"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-32773",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 332661,
  "published_at": "2026-09-02T11:17:20.173+00:00"
}