{"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-07-15T02:05:57.105875522Z","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":null,"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":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T02:05:57.105875522Z"}}