Description
XSS exists in the HAPI FHIR testpage overlay module of the HAPI FHIR library before 3.8.0. The attack involves unsanitized HTTP parameters being output in a form page, allowing attackers to leak cookies and other sensitive information from ca/uhn/fhir/to/BaseController.java via a specially crafted URL. (This module is not generally used in production systems so the attack surface is expected to be low, but affected systems are recommended to upgrade immediately.)
Remediation
References
https://github.com/jamesagnew/hapi-fhir/commit/8f41159eb147eeb964cad68b28eff97acac6ea9a
https://github.com/jamesagnew/hapi-fhir/issues/1335
https://github.com/jamesagnew/hapi-fhir/releases/tag/v3.8.0
Related Vulnerabilities
CVE-2016-6797 Vulnerability in maven package org.apache.tomcat:tomcat-catalina
CVE-2022-41932 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore
CVE-2017-2612 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2019-25155 Vulnerability in maven package org.webjars.npm:dompurify
CVE-2021-28092 Vulnerability in maven package org.webjars:is-svg