{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-31777","id":"CVE-2022-31777","title":"Apache Spark XSS vulnerability in log viewer UI Javascript","description":"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.","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:30:52.240463472Z","reserved":"2022-05-27T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["Apache Software Foundation Apache Spark"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Spark","defaultStatus":null,"versions":[{"status":"affected","version":"3.3.0"},{"lessThanOrEqual":"3.2.1","status":"affected","version":"3.2.1 and earlier","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":["<3.2.2",">=3.3.0 <3.3.1"],"fixed":["3.2.2","3.3.1"],"advisory":"GHSA-43xg-8wmj-cw8h"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.9.3","purl":"pkg:maven/org.apache.spark/spark-core_2.9.3","ranges":["all versions"],"fixed":[],"advisory":"GHSA-43xg-8wmj-cw8h"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.13","purl":"pkg:maven/org.apache.spark/spark-core_2.13","ranges":["<3.2.2",">=3.3.0 <3.3.1"],"fixed":["3.2.2","3.3.1"],"advisory":"GHSA-43xg-8wmj-cw8h"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.12","purl":"pkg:maven/org.apache.spark/spark-core_2.12","ranges":["<3.2.2",">=3.3.0 <3.3.1"],"fixed":["3.2.2","3.3.1"],"advisory":"GHSA-43xg-8wmj-cw8h"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.11","purl":"pkg:maven/org.apache.spark/spark-core_2.11","ranges":["all versions"],"fixed":[],"advisory":"GHSA-43xg-8wmj-cw8h"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.10","purl":"pkg:maven/org.apache.spark/spark-core_2.10","ranges":["all versions"],"fixed":[],"advisory":"GHSA-43xg-8wmj-cw8h"}],"cwes":["CWE-74"],"aliases":["BIT-spark-2022-31777","GHSA-43xg-8wmj-cw8h","PYSEC-2022-42976"],"references":[{"url":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q","tags":["x_transferred","Mailing List","Third Party Advisory","web","article"]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/01/14","tags":["mailing-list","x_transferred","Mailing List","article","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31777.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31777","tags":["advisory"]},{"url":"https://github.com/apache/spark/commit/ad90195de56688ce0898691eb9d04297ab0871ad","tags":["web"]},{"url":"https://github.com/apache/spark","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-42976.yaml","tags":["web"]},{"url":"https://web.archive.org/web/20220728105026/https://issues.apache.org/jira/browse/SPARK-39505","tags":["web"]},{"url":"https://github.com/advisories/GHSA-43xg-8wmj-cw8h","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01833,"epssPercentile":0.79359,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-31777","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31777","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-31777","ok":true,"note":"6 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-43xg-8wmj-cw8h","ok":true,"note":"GHSA-43xg-8wmj-cw8h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-31777","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}