{"api_version":"1","generated_at":"2026-04-22T22:50:53+00:00","cve":"CVE-2022-31777","urls":{"html":"https://cve.report/CVE-2022-31777","api":"https://cve.report/api/cve/CVE-2022-31777.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31777","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31777"},"summary":{"title":"CVE-2022-31777","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.","state":"PUBLIC","assigner":"security@apache.org","published_at":"2022-11-01 16:15:00","updated_at":"2022-11-29 17:58:00"},"problem_types":["CWE-74"],"metrics":[],"references":[{"url":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q","name":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q","refsource":"MISC","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2022/11/01/14","name":"http://www.openwall.com/lists/oss-security/2022/11/01/14","refsource":"MISC","tags":[],"title":"oss-security - CVE-2022-31777: Apache Spark XSS vulnerability in log viewer UI\n Javascript","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31777","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31777","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31777","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"spark","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31777","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"spark","cpe6":"3.3.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-31777","ASSIGNER":"security@apache.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","cweId":"CWE-74"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Apache Software Foundation","product":{"product_data":[{"product_name":"Apache Spark","version":{"version_data":[{"version_value":"3.3.0","version_affected":"="},{"version_value":"3.2.1 and earlier","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q","refsource":"MISC","name":"https://lists.apache.org/thread/60mgbswq2lsmrxykfxpqq13ztkm2ht6q"},{"url":"http://www.openwall.com/lists/oss-security/2022/11/01/14","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2022/11/01/14"}]},"generator":{"engine":"Vulnogram 0.0.9"},"source":{"defect":["SPARK-39505"],"discovery":"UNKNOWN"},"work_around":[{"lang":"en","value":"Upgrade to Apache Spark maintenance releases 3.2.2, or 3.3.1 or later"}],"credits":[{"lang":"en","value":"Florian Walter (Veracode)"}]},"nvd":{"publishedDate":"2022-11-01 16:15:00","lastModifiedDate":"2022-11-29 17:58:00","problem_types":["CWE-74"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:spark:3.3.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","versionEndExcluding":"3.2.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}