Dspace · Dspace · CVE-2022-31191
**Name of the Vulnerable Software and Affected Versions**
DSpace versions prior to 5.11
DSpace versions prior to 6.4
**Description**
The JSPUI spellcheck "Did you mean" HTML escapes the data-spell attribute in the link, but not the actual displayed text. Similarly, the JSPUI autocomplete HTML does not properly escape text passed to it. Both are vulnerable to XSS. This vulnerability only impacts the JSPUI.
**Recommendations**
For DSpace 5.x, upgrade to version 5.11 or apply the patch files for spellcheck and autocomplete manually.
For DSpace 6.x, upgrade to version 6.4 or apply the patch files for spellcheck and autocomplete manually.
To apply the patch, download the appropriate patch file, apply it using `git apply [name-of-file].patch`, rebuild DSpace with `mvn -U clean package`, redeploy DSpace with `ant update`, and restart Tomcat.