{"api_version":"1","generated_at":"2026-07-23T11:24:46+00:00","cve":"CVE-2022-31191","urls":{"html":"https://cve.report/CVE-2022-31191","api":"https://cve.report/api/cve/CVE-2022-31191.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31191","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31191"},"summary":{"title":"CVE-2022-31191","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-08-01 21:15:00","updated_at":"2022-08-08 17:04:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/DSpace/DSpace/commit/ebb83a75234d3de9be129464013e998dc929b68d","name":"https://github.com/DSpace/DSpace/commit/ebb83a75234d3de9be129464013e998dc929b68d","refsource":"MISC","tags":[],"title":"[DS-4453] Fix XSS handling in JSPUI discovery spellcheck · DSpace/DSpace@ebb83a7 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/DSpace/DSpace/commit/35030a23e48b5946f5853332c797e1c4adea7bb7","name":"https://github.com/DSpace/DSpace/commit/35030a23e48b5946f5853332c797e1c4adea7bb7","refsource":"MISC","tags":[],"title":"[DS-4453] Fix XSS handling in JSPUI discovery autocomplete · DSpace/DSpace@35030a2 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/DSpace/DSpace/security/advisories/GHSA-c558-5gfm-p2r8","name":"https://github.com/DSpace/DSpace/security/advisories/GHSA-c558-5gfm-p2r8","refsource":"CONFIRM","tags":[],"title":"Cross Site Scripting (XSS) possible in JSPUI spellcheck and autocomplete tools · Advisory · DSpace/DSpace · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/DSpace/DSpace/commit/6f75bb084ab1937d094208c55cd84340040bcbb5","name":"https://github.com/DSpace/DSpace/commit/6f75bb084ab1937d094208c55cd84340040bcbb5","refsource":"MISC","tags":[],"title":"[DS-4453] Discovery autocomplete HTML escaping (JSPUI) · DSpace/DSpace@6f75bb0 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/DSpace/DSpace/commit/c89e493e517b424dea6175caba54e91d3847fc3a","name":"https://github.com/DSpace/DSpace/commit/c89e493e517b424dea6175caba54e91d3847fc3a","refsource":"MISC","tags":[],"title":"[DS-4453] Escape spellcheck, autocomplete HTML (JSPUI) · DSpace/DSpace@c89e493 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31191","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31191","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31191","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"duraspace","cpe5":"dspace","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31191","vulnerable":"1","versionEndIncluding":"5.10","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"duraspace","cpe5":"dspace","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31191","STATE":"PUBLIC","TITLE":"Cross Site Scripting possible in DSpace JSPUI spellcheck and autocomplete tools"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"DSpace","version":{"version_data":[{"version_value":">= 6.0, < 6.4"},{"version_value":">= 4.0, < 5.11"}]}}]},"vendor_name":"DSpace"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/DSpace/DSpace/security/advisories/GHSA-c558-5gfm-p2r8","refsource":"CONFIRM","url":"https://github.com/DSpace/DSpace/security/advisories/GHSA-c558-5gfm-p2r8"},{"name":"https://github.com/DSpace/DSpace/commit/35030a23e48b5946f5853332c797e1c4adea7bb7","refsource":"MISC","url":"https://github.com/DSpace/DSpace/commit/35030a23e48b5946f5853332c797e1c4adea7bb7"},{"name":"https://github.com/DSpace/DSpace/commit/6f75bb084ab1937d094208c55cd84340040bcbb5","refsource":"MISC","url":"https://github.com/DSpace/DSpace/commit/6f75bb084ab1937d094208c55cd84340040bcbb5"},{"name":"https://github.com/DSpace/DSpace/commit/c89e493e517b424dea6175caba54e91d3847fc3a","refsource":"MISC","url":"https://github.com/DSpace/DSpace/commit/c89e493e517b424dea6175caba54e91d3847fc3a"},{"name":"https://github.com/DSpace/DSpace/commit/ebb83a75234d3de9be129464013e998dc929b68d","refsource":"MISC","url":"https://github.com/DSpace/DSpace/commit/ebb83a75234d3de9be129464013e998dc929b68d"}]},"source":{"advisory":"GHSA-c558-5gfm-p2r8","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-08-01 21:15:00","lastModifiedDate":"2022-08-08 17:04:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:duraspace:dspace:*:*:*:*:*:*:*:*","versionStartExcluding":"6.0","versionEndExcluding":"6.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:duraspace:dspace:*:*:*:*:*:*:*:*","versionStartExcluding":"4.0","versionEndIncluding":"5.10","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}