GHSA-43xg-8wmj-cw8h

Suggest an improvement
Source
https://github.com/advisories/GHSA-43xg-8wmj-cw8h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-43xg-8wmj-cw8h/GHSA-43xg-8wmj-cw8h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-43xg-8wmj-cw8h
Aliases
Published
2022-11-01T19:00:29Z
Modified
2025-12-18T16:17:11.831234Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-11-01T16:15:00Z",
    "cwe_ids": [
        "CWE-74"
    ],
    "severity": "MODERATE",
    "github_reviewed_at": "2022-11-01T21:03:46Z",
    "github_reviewed": true
}
References

Affected packages

Maven

org.apache.spark:spark-core_2.9.3

Package

Name
org.apache.spark:spark-core_2.9.3
View open source insights on deps.dev
Purl
pkg:maven/org.apache.spark/spark-core_2.9.3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.8.0-incubating
0.8.1-incubating

Database specific

last_known_affected_version_range

"< 3.2.2"

org.apache.spark:spark-core_2.13

Package

Name
org.apache.spark:spark-core_2.13
View open source insights on deps.dev
Purl
pkg:maven/org.apache.spark/spark-core_2.13

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.2

Affected versions

3.*

3.2.0
3.2.1

org.apache.spark:spark-core_2.13

Package

Name
org.apache.spark:spark-core_2.13
View open source insights on deps.dev
Purl
pkg:maven/org.apache.spark/spark-core_2.13

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.0
Fixed
3.3.1

Affected versions

3.*

3.3.0

org.apache.spark:spark-core_2.12

Package

Name
org.apache.spark:spark-core_2.12
View open source insights on deps.dev
Purl
pkg:maven/org.apache.spark/spark-core_2.12

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.2

Affected versions

2.*

2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
2.4.6
2.4.7
2.4.8

3.*

3.0.0
3.0.0-preview
3.0.0-preview2
3.0.1
3.0.2
3.0.3
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.2.1

org.apache.spark:spark-core_2.12

Package

Name
org.apache.spark:spark-core_2.12
View open source insights on deps.dev
Purl
pkg:maven/org.apache.spark/spark-core_2.12

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.0
Fixed
3.3.1

Affected versions

3.*

3.3.0

org.apache.spark:spark-core_2.11

Package

Name
org.apache.spark:spark-core_2.11
View open source insights on deps.dev
Purl
pkg:maven/org.apache.spark/spark-core_2.11

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.0
1.2.1
1.2.2
1.3.0
1.3.1
1.4.0
1.4.1
1.5.0
1.5.1
1.5.2
1.6.0
1.6.1
1.6.2
1.6.3

2.*

2.0.0
2.0.0-preview
2.0.1
2.0.2
2.1.0
2.1.1
2.1.2
2.1.3
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
2.4.6
2.4.7
2.4.8

Database specific

last_known_affected_version_range

"< 3.2.2"

org.apache.spark:spark-core_2.10

Package

Name
org.apache.spark:spark-core_2.10
View open source insights on deps.dev
Purl
pkg:maven/org.apache.spark/spark-core_2.10

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.9.0-incubating
0.9.1
0.9.2

1.*

1.0.0
1.0.1
1.0.2
1.1.0
1.1.1
1.2.0
1.2.1
1.2.2
1.3.0
1.3.1
1.4.0
1.4.1
1.5.0
1.5.1
1.5.2
1.6.0
1.6.1
1.6.2
1.6.3

2.*

2.0.0
2.0.0-preview
2.0.1
2.0.2
2.1.0
2.1.1
2.1.2
2.1.3
2.2.0
2.2.1
2.2.2
2.2.3

Database specific

last_known_affected_version_range

"< 3.2.2"

PyPI

pyspark

Package

Name
pyspark
View open source insights on deps.dev
Purl
pkg:pypi/pyspark

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.2

Affected versions

2.*

2.1.1
2.1.2
2.1.3
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
2.4.6
2.4.7
2.4.8

3.*

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

pyspark

Package

Name
pyspark
View open source insights on deps.dev
Purl
pkg:pypi/pyspark

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.0
Fixed
3.3.1

Affected versions

3.*

3.3.0