CVE-2022-36097
Java vulnerability analysis and mitigation

Overview

CVE-2022-36097 affects XWiki Platform's Attachment UI, a macro designed for uploading and selecting attachments. The vulnerability was discovered in versions from 14.0-rc-1 to prior to 14.4-rc-1, where it was possible to store JavaScript in an attachment name that would be executed when users attempt to move the corresponding attachment. The issue was patched in XWiki 14.4-rc-1 (GitHub Advisory).

Technical details

The vulnerability is classified as a Cross-Site Scripting (XSS) issue, specifically related to improper neutralization of script-related HTML tags (CWE-80) and improper neutralization of input during web page generation (CWE-79). The CVSS v3.1 base score is 8.9 (HIGH), with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L, indicating a network-accessible vulnerability with low attack complexity requiring low privileges and user interaction (GitHub Advisory).

Impact

When exploited, the vulnerability allows attackers to execute arbitrary JavaScript code in the context of other users' browsers when they attempt to move an attachment. For example, an attachment with a specially crafted name containing JavaScript code would trigger code execution when accessed through the move attachment functionality (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to XWiki version 14.4-rc-1 or later. For users unable to upgrade immediately, a workaround is available by copying moveStep1.vm to webapp/xwiki/templates/moveStep1.vm and replacing the vulnerable code with proper escaping of the attachment name, document title, and URL in the title display configuration (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66516CRITICAL10
  • JavaJava
  • opensearch-2
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-pure-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management