Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-31777

apache-spark: XSS vulnerability in log viewer UI Javascript

Overview

Published
1 Nov 2022
Modified
17 Jun 2026
Medium CVE
13 Registry packages
0 OS packages
0 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

5.4 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Weakness: CWE-74

Affected packages · 13

Packages affected by CVE-2022-31777
EcosystemPackageVulnerableFixed in
Bitnami spark <3.2.2>=3.3.0, <3.3.1 3.2.23.3.1
Maven org.apache.spark:spark-core_2.10 >=0, <3.2.2 No fix yet
Maven org.apache.spark:spark-core_2.11 >=0, <3.2.2 No fix yet
Maven org.apache.spark:spark-core_2.12 <3.2.2>=3.3.0, <3.3.1 3.2.23.3.1
Maven org.apache.spark:spark-core_2.13 <3.2.2>=3.3.0, <3.3.1 3.2.23.3.1
Maven org.apache.spark:spark-core_2.9.3 >=0, <3.2.2 No fix yet
PyPI pyspark <3.2.2>=3.3.0, <3.3.1 3.2.23.3.1
Seal Maven org.apache.spark:spark-core_2.11 >=2.3.1+sp0, <2.3.1+sp999>=2.3.2+sp0, <2.3.2+sp3p3>=2.4.8+sp0, <2.4.8+sp999 2.3.1+sp9992.3.2+sp3p32.4.8+sp999
Seal Maven seal.sp1.org.apache.spark:spark-core_2.11 >=2.3.1, <2.3.1+sp999>=2.3.2, <2.3.2+sp999>=2.4.8, <2.4.8+sp999 2.3.1+sp9992.3.2+sp9992.4.8+sp999
Seal Maven seal.sp2.org.apache.spark:spark-core_2.11 >=2.3.1, <2.3.1+sp999>=2.4.8, <2.4.8+sp999 2.3.1+sp9992.4.8+sp999
Seal Maven seal.sp2p2.org.apache.spark:spark-core_2.11 >=2.3.2, <2.3.2+sp999 2.3.2+sp999
Seal PyPI pyspark >=2.4.8+sp0, <2.4.8+sp999 2.4.8+sp999
Seal PyPI seal-pyspark >=2.4.8+sp1, <2.4.8+sp999 2.4.8+sp999

Open a package to see all its vulnerabilities.

Operating systems

No Linux distribution reports this ID.

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.