{"cve":"CVE-2022-31777","nvd":{"published":"2022-11-01T16:15:13.367","modified":"2026-06-17T04:46:17.310","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-74"],"references":["http://www.openwall.com/lists/oss-security/2022/11/01/14","https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q","http://www.openwall.com/lists/oss-security/2022/11/01/14","https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q"],"products":["apache:spark"],"source":"nvd","synced_at":"2026-10-19T21:37:08.729216836+00:00"},"epss":{"cve":"CVE-2022-31777","score":0.0182,"percentile":0.78744,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-43xg-8wmj-cw8h","url":"https://osv.dev/vulnerability/GHSA-43xg-8wmj-cw8h","summary":"Apache Spark vulnerable to Log Injection","modified":"2025-12-18T16:17:11.831234Z","packages":[{"ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":["<3.2.2"],"fixed":["3.2.2"]},{"ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":[">=3.3.0 <3.3.1"],"fixed":["3.3.1"]},{"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":[]},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.13","purl":"pkg:maven/org.apache.spark/spark-core_2.13","ranges":["<3.2.2"],"fixed":["3.2.2"]},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.13","purl":"pkg:maven/org.apache.spark/spark-core_2.13","ranges":[">=3.3.0 <3.3.1"],"fixed":["3.3.1"]},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.12","purl":"pkg:maven/org.apache.spark/spark-core_2.12","ranges":["<3.2.2"],"fixed":["3.2.2"]},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.12","purl":"pkg:maven/org.apache.spark/spark-core_2.12","ranges":[">=3.3.0 <3.3.1"],"fixed":["3.3.1"]},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.11","purl":"pkg:maven/org.apache.spark/spark-core_2.11","ranges":["all versions"],"fixed":[]},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.10","purl":"pkg:maven/org.apache.spark/spark-core_2.10","ranges":["all versions"],"fixed":[]}]},{"id":"PYSEC-2022-42976","url":"https://osv.dev/vulnerability/PYSEC-2022-42976","summary":"","modified":"2026-06-10T17:01:37.003052396Z","packages":[{"ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":["<3.2.2"],"fixed":["3.2.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}