{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-31777","published":"2022-11-01T16:15:13.367000Z","last_modified":"2026-06-17T04:46:17.310000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-74"],"cpes":[{"criteria":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","part":"a","vendor":"apache","product":"spark","version_end_excluding":"3.2.2"},{"criteria":"cpe:2.3:a:apache:spark:3.3.0:*:*:*:*:*:*:*","part":"a","vendor":"apache","product":"spark","version":"3.3.0"}],"cpes_truncated":false,"vendors":["apache"],"products":["apache/spark"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.01753,"percentile":0.78394,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"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":[{"introduced":"0"}],"versions":["0.9.0-incubating","0.9.1","0.9.2","1.0.0","1.0.1","1.0.2","1.1.0","1.1.1","1.2.0","1.2.1","1.2.2","1.3.0","1.3.1","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.6.3","2.0.0","2.0.0-preview","2.0.1","2.0.2","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0","2.2.1","2.2.2","2.2.3"],"versions_truncated":false},{"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":[{"introduced":"0"}],"versions":["1.2.0","1.2.1","1.2.2","1.3.0","1.3.1","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.6.3","2.0.0","2.0.0-preview","2.0.1","2.0.2","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0","2.2.1","2.2.2","2.2.3","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8"],"versions_truncated":false},{"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":[{"introduced":"0","fixed":"3.2.2"}],"versions":["2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","3.0.0","3.0.0-preview","3.0.0-preview2","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.1.3","3.2.0","3.2.1"],"versions_truncated":false},{"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":[{"introduced":"3.3.0","fixed":"3.3.1"}],"versions":["3.3.0"],"versions_truncated":false},{"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":[{"introduced":"0","fixed":"3.2.2"}],"versions":["3.2.0","3.2.1"],"versions_truncated":false},{"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":[{"introduced":"3.3.0","fixed":"3.3.1"}],"versions":["3.3.0"],"versions_truncated":false},{"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":[{"introduced":"0"}],"versions":["0.8.0-incubating","0.8.1-incubating"],"versions_truncated":false},{"advisory":"GHSA-43xg-8wmj-cw8h","ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":[{"introduced":"0","fixed":"3.2.2"}],"versions":["2.1.1","2.1.2","2.1.3","2.2.0","2.2.1","2.2.2","2.2.3","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","3.0.0","3.0.1","3.0.2","3.0.3","3.1.1","3.1.2","3.1.3","3.2.0","3.2.1"],"versions_truncated":false},{"advisory":"GHSA-43xg-8wmj-cw8h","ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":[{"introduced":"3.3.0","fixed":"3.3.1"}],"versions":["3.3.0"],"versions_truncated":false},{"advisory":"PYSEC-2022-42976","ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":[{"introduced":"0","fixed":"3.2.2"}],"versions":["2.1.1","2.1.2","2.1.3","2.2.0","2.2.1","2.2.2","2.2.3","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","3.0.0","3.0.1","3.0.2","3.0.3","3.1.1","3.1.2","3.1.3","3.2.0","3.2.1"],"versions_truncated":false}],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2022-31777/","html_en":"/en/cve/CVE-2022-31777/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31777","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31777"},"untrusted":{"vendor_name":"Apache","product_name":"Spark","desc_en":"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.","affected":[{"untrusted_vendor":"Apache Software Foundation","untrusted_product":"Apache Spark","versions":[]}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2022/11/01/14","tags":["Mailing List"]},{"url":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q","tags":["Mailing List","Third Party Advisory"]}]}}