CVE-2019-12741
Cross-site Scripting in HAPI FHIR
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.)
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| ca.uhn.hapi.fhir » hapi-fhir-base | < 3.8.0 | 3.8.0 |
Blast radius
46% of the dependent artifacts (126) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,545 |
| 2 hops | 1,838 |
| 3 hops | 879 |
| 4 hops | 409 |
| 5 hops | 48 |
| 6 hops | 10 |
Most used dependents
- ca.uhn.hapi.fhir » hapi-fhir-structures-r4164 usages
- ca.uhn.hapi.fhir » hapi-fhir-structures-dstu3102 usages
- ca.uhn.hapi.fhir » hapi-fhir-client79 usages
- ca.uhn.hapi.fhir » hapi-fhir-server69 usages
- ca.uhn.hapi.fhir » hapi-fhir-structures-dstu268 usages
- ca.uhn.hapi.fhir » hapi-fhir-validation63 usages
- ca.uhn.hapi.fhir » hapi-fhir-validation-resources-r460 usages
- ca.uhn.hapi.fhir » hapi-fhir-validation-resources-dstu349 usages
- ca.uhn.hapi.fhir » hapi-fhir-jpaserver-base37 usages
- ca.uhn.hapi.fhir » hapi-fhir-structures-hl7org-dstu236 usages
- ca.uhn.hapi.fhir » hapi-fhir-converter26 usages
- ca.uhn.hapi.fhir » hapi-fhir-testpage-overlay21 usages
- org.apache.camel » camel-fhir17 usages
- org.hspconsortium.carewebframework » cwf-ui-reporting17 usages
- ca.uhn.hapi.fhir » hapi-fhir-utilities16 usages
Computed from the dependency graph of build 20261129.0021 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2019-12741 | nvd.nist.gov |
| Web | jamesagnew/hapi-fhir issue #1335 | github.com |
| Web | jamesagnew/hapi-fhir commit 8f41159 | github.com |
| Web | jamesagnew/hapi-fhir release v3.8.0 | github.com |
