Vulnerability · Published Aug 1, 2022 · Assigned by GitHub_M
CVE-2022-31191Cross Site Scripting possible in DSpace JSPUI spellcheck and autocomplete tools
High 7.1
In plain English
A high-severity cross-site scripting in DSpace from DSpace. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
DSpace open source software is a repository application which provides durable access to digital resources. dspace-jspui is a UI component for DSpace. 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. Users are advised to upgrade. There are no known workarounds for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.dspace:dspace-jspui | 5.11 | GHSA-c558-5gfm-p2r8 |
| Maven | org.dspace:dspace-jspui | 6.4 | GHSA-c558-5gfm-p2r8 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
References
- https://github.com/DSpace/DSpace/security/advisories/GHSA-c558-5gfm-p2r8 x_refsource_CONFIRM
- https://github.com/DSpace/DSpace/commit/35030a23e48b5946f5853332c797e1c4adea7bb7 x_refsource_MISC
- https://github.com/DSpace/DSpace/commit/6f75bb084ab1937d094208c55cd84340040bcbb5 x_refsource_MISC
- https://github.com/DSpace/DSpace/commit/c89e493e517b424dea6175caba54e91d3847fc3a x_refsource_MISC
- https://github.com/DSpace/DSpace/commit/ebb83a75234d3de9be129464013e998dc929b68d x_refsource_MISC