Medium
Apache Spark XSS vulnerability in log viewer UI Javascript
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-31777
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 00:33 UTC · Revision 1
Source evidence
Apache Spark XSS vulnerability in log viewer UI Javascript
core-osv · Original sourcePublished 1 Nov 2022, 00:00 UTC
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.
osv:CVE-2022-31777
Complete source record
{
"id": "801f8b5e277ee82629978c65733a6670714e97e8b96d2c68632312f34b511db7",
"url": "https://osv.dev/vulnerability/CVE-2022-31777",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Apache Spark XSS vulnerability in log viewer UI Javascript",
"summary": "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.",
"evidence": "osv:CVE-2022-31777",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2022-31777",
"aliases": [
"BIT-spark-2022-31777",
"CVE-2022-31777",
"GHSA-43xg-8wmj-cw8h",
"PYSEC-2022-42976"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/apache/spark",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "78a5825fe266c0884d2dd18cbca9625fa258d7f7"
},
{
"introduced": "f74867bddfbcdd4d08076db36851e88b15e66556"
},
{
"last_affected": "f74867bddfbcdd4d08076db36851e88b15e66556"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.2.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:spark:3.3.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.0"
},
{
"last_affected": "3.3.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.3.0",
"v3.3.0-rc6",
"v3.3.0",
"v3.2.1-rc2",
"v3.2.1",
"v3.2.1-rc1",
"v3.2.0-rc7",
"v3.2.0",
"v3.2.0-rc6",
"v3.2.0-rc5",
"v3.2.0-rc4",
"v3.2.0-rc3",
"v3.2.0-rc2",
"v3.2.0-rc1",
"v3.0.0-preview-rc2",
"v3.0.0-preview",
"v3.0.0-preview-rc1",
"v0.7.0",
"v0.6.0",
"0.3-scala-2.8",
"alpha-0.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31777.json"
}
}
],
"modified": "2026-10-28T02:30:52.240463472Z",
"provider": "osv",
"references": [
"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31777.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-31777"
],
"provider_metadata": {
"cwe_ids": [
"CWE-74"
],
"cna_assigner": "apache",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "3.3.0"
},
{
"last_affected": "3.3.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
},
{
"extracted_events": [
{
"range": [
{
"introduced": "3.2.1 and earlier"
},
{
"last_affected": "3.2.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31777.json"
}
},
"related_cves": [
{
"value": "CVE-2022-31777",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 520999,
"published_at": "2022-11-01T00:00:00+00:00"
}