{"id":"CVE-2022-31777","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.","aliases":["BIT-spark-2022-31777","GHSA-43xg-8wmj-cw8h","PYSEC-2022-42976"],"modified":"2026-08-12T03:51:09.605846891Z","published":"2022-11-01T00:00:00Z","database_specific":{"cwe_ids":["CWE-74"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31777.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"3.3.0"},{"last_affected":"3.3.0"},{"introduced":"3.2.1 and earlier"},{"last_affected":"3.2.1"}]}],"cna_assigner":"apache"},"references":[{"type":"WEB","url":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31777.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31777"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2022/11/01/14"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/spark","events":[{"introduced":"0"},{"fixed":"78a5825fe266c0884d2dd18cbca9625fa258d7f7"},{"introduced":"f74867bddfbcdd4d08076db36851e88b15e66556"},{"last_affected":"f74867bddfbcdd4d08076db36851e88b15e66556"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"3.2.2"},{"introduced":"3.3.0"},{"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:*:*:*:*:*:*:*"]}}],"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}