{"id":"CVE-2022-31777","published":"2022-11-01T00:00:00Z","modified":"2025-05-06T03:36:31Z","title":"Apache Spark XSS vulnerability in log viewer UI Javascript","vendor":"Apache","product":"Apache Spark","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01833,"percentile":0.79423,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/01/14","tags":["mailing-list"]}],"priority":{"score":19.7,"factors":[{"name":"EPSS percentile","points":15.88},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Spark","versions":["3.3.0",">= 3.2.1 and earlier, <= 3.2.1"]}],"workarounds":{"items":["Upgrade to Apache Spark maintenance releases 3.2.2, or 3.3.1 or later"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-06T03:36:06.259482Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyspark","vulnerableRanges":["<3.2.2",">=3.3.0, <3.3.1"],"patched":["3.2.2","3.3.1"],"from":["GHSA-43xg-8wmj-cw8h","PYSEC-2022-42976"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.spark:spark-core_2.9.3","vulnerableRanges":["<3.2.2"],"patched":[],"from":["GHSA-43xg-8wmj-cw8h"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.spark:spark-core_2.13","vulnerableRanges":["<3.2.2",">=3.3.0, <3.3.1"],"patched":["3.2.2","3.3.1"],"from":["GHSA-43xg-8wmj-cw8h"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.spark:spark-core_2.12","vulnerableRanges":["<3.2.2",">=3.3.0, <3.3.1"],"patched":["3.2.2","3.3.1"],"from":["GHSA-43xg-8wmj-cw8h"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.spark:spark-core_2.11","vulnerableRanges":["<3.2.2"],"patched":[],"from":["GHSA-43xg-8wmj-cw8h"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.spark:spark-core_2.10","vulnerableRanges":["<3.2.2"],"patched":[],"from":["GHSA-43xg-8wmj-cw8h"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in the log viewer user interface of Apache Spark (affecting 3.2.1 and earlier, and 3.3.0) lets attackers inject malicious content into logs that the UI later renders. An attacker with low privileges who can get a payload into the logs can run arbitrary JavaScript in the browser of a user who views those logs, and this requires that user to interact with the page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:28Z"},"euvd":{"id":"EUVD-2022-0218","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-38296","published":"2022-03-10","fixed":"3.1.3","kev":false},{"cve":"CVE-2022-33891","published":"2022-07-18","fixed":"3.2.2","kev":true},{"cve":"CVE-2023-32007","published":"2023-05-02","fixed":"3.2.2","kev":false},{"cve":"CVE-2022-31777","published":"2022-11-01","fixed":"3.3.1","kev":false},{"cve":"CVE-2023-22946","published":"2023-04-17","fixed":"3.4.0","kev":false,"link":{"from":"CVE-2022-31777","to":"CVE-2023-22946","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pyspark","fromFixed":"3.3.1","toFixed":"3.3.2","daysApart":167},{"kind":"version-step","provenance":"source","package":"Maven:org.apache.spark:spark-core_2.13","fromFixed":"3.3.1","toFixed":"3.3.3","daysApart":167}]}},{"cve":"CVE-2025-55039","published":"2025-10-15","fixed":"3.5.2","kev":false},{"cve":"CVE-2026-32773","published":"2026-09-02","fixed":"3.5.8","kev":false}],"package":"PyPI:pyspark"}}