{"id":"CVE-2022-31777","aliases":["BIT-spark-2022-31777","GHSA-43xg-8wmj-cw8h","PYSEC-2022-42976"],"url":"https://o3.security/vulnerability/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.","published":"2022-11-01T00:00:00Z","modified":"2026-10-28T02:30:52.240463472Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.01526,"percentile":0.7233,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.9.3","fixedVersion":null},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.13","fixedVersion":"3.2.2"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.13","fixedVersion":"3.3.1"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.12","fixedVersion":"3.2.2"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.12","fixedVersion":"3.3.1"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.11","fixedVersion":null},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.10","fixedVersion":null},{"ecosystem":"PyPI","name":"pyspark","fixedVersion":"3.2.2"},{"ecosystem":"PyPI","name":"pyspark","fixedVersion":"3.3.1"}],"fix":{"url":"https://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad","label":"apache/spark@ad90195"},"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"},{"type":"WEB","url":"https://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad"},{"type":"PACKAGE","url":"https://github.com/apache/spark"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml"},{"type":"WEB","url":"https://web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:52.240463472Z"}}