CVE-2022-31777

Source
https://cve.org/CVERecord?id=CVE-2022-31777
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-31777.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-31777
Aliases
Downstream
Published
2022-11-01T00:00:00Z
Modified
2026-06-18T03:55:45.660586823Z
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 XSS vulnerability in log viewer UI Javascript
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
{
    "cwe_ids": [
        "CWE-74"
    ],
    "cna_assigner": "apache",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31777.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "last_affected": "3.3.0"
                },
                {
                    "introduced": "3.2.1 and earlier"
                },
                {
                    "last_affected": "3.2.1"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ]
}
References

Affected packages

Git / github.com/apache/spark

Affected ranges

Type
GIT
Repo
https://github.com/apache/spark
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.2.2"
        },
        {
            "last_affected": "3.3.0"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ],
    "cpe": [
        "cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:apache:spark:3.3.0:*:*:*:*:*:*:*"
    ]
}

Affected versions

0.*
0.3-scala-2.8
alpha-0.*
alpha-0.2
v0.*
v0.6.0
v0.7.0
v3.*
v3.0.0-preview
v3.0.0-preview-rc1
v3.0.0-preview-rc2
v3.2.0
v3.2.0-rc1
v3.2.0-rc2
v3.2.0-rc3
v3.2.0-rc4
v3.2.0-rc5
v3.2.0-rc6
v3.2.0-rc7
v3.2.1
v3.2.1-rc1
v3.2.1-rc2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-31777.json"