CVE-2022-31777: Apache Spark XSS vulnerability in log viewer UI Javascript

Published Nov 1, 2022
·
Updated

A stored cross-site scripting (XSS) flaw was found in Apache Spark. This issue allows an attacker to execute arbitrary JavaScript in the web browser of a user, including a malicious payload into the logs which are returned in logs rendered in the UI.

Other sources

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 Software

6 affected componentsFixes available
Apache Spark<3.2.2
Apache Spark=3.3.0
pip/pyspark=3.3.0
3.3.1
pip/pyspark<3.2.2
3.2.2
maven/org.apache.spark:spark-core=3.3.0
3.3.1
maven/org.apache.spark:spark-core<3.2.2
3.2.2

Event History

Nov 1, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
07:00 PM
Nov 23, 2022
Data Sourced
via Red Hat·04:27 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-31777?

CVE-2022-31777 is a stored cross-site scripting (XSS) vulnerability in Apache Spark that allows remote attackers to execute arbitrary JavaScript in the user's web browser.

2

How does CVE-2022-31777 impact users?

CVE-2022-31777 allows attackers to execute malicious JavaScript code in the web browser of a user, potentially leading to unauthorized access or data theft.

3

Which versions of Apache Spark are affected by CVE-2022-31777?

Apache Spark versions 3.2.1 and earlier, and 3.3.0 are affected by CVE-2022-31777.

4

How can I remediate CVE-2022-31777 in Apache Spark?

To remediate CVE-2022-31777 in Apache Spark, upgrade to version 3.2.2 or 3.3.1 depending on the affected version.

5

Where can I find more information about CVE-2022-31777?

You can find more information about CVE-2022-31777 in the following references: [CVE-2022-31777](https://www.cve.org/CVERecord?id=CVE-2022-31777), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-31777), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2145264), [Red Hat Advisory](https://access.redhat.com/errata/RHSA-2023:2100).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203