CVE-2022-31192
Java vulnerability analysis and mitigation

Overview

The DSpace JSPUI "Request a Copy" feature contains a Cross-Site Scripting (XSS) vulnerability (CVE-2022-31192) that was discovered in July 2022. The vulnerability affects DSpace versions 5.0 through 6.3, where values submitted and stored from the "Request a Copy" form are not properly escaped, making item requests vulnerable to XSS attacks. This vulnerability only impacts the JSPUI interface and does not affect the XMLUI or version 7.x (GitHub Advisory).

Technical details

The vulnerability exists due to insufficient input validation and escaping of user-submitted values in the "Request a Copy" form functionality. The issue was fixed by implementing proper HTML escaping using StringEscapeUtils.escapeHtml4() for user input parameters including email, name, and comments in the RequestItemServlet.java file (GitHub Commit).

Impact

An attacker could potentially execute malicious JavaScript code in the context of other users' browsers by submitting specially crafted input through the "Request a Copy" form. This could lead to session hijacking, theft of sensitive information, or other client-side attacks against DSpace users (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in DSpace versions 6.4 and 5.11. For users unable to upgrade immediately, a temporary workaround is available by disabling the "Request a Copy" feature by commenting out or emptying the 'request.item.type' configuration setting. Patch files are also available for manual application: DSpace 6.x patch via commit 503a6af and DSpace 5.x patch via commit 28eb815 (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-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-64775HIGH7.5
  • JavaJava
  • javapackages-tools:201801::guice-servlet
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025
CVE-2025-13472MEDIUM5.3
  • JavaJava
  • com.blazemeter.plugins:blazemeterjenkinsplugin
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