Live threats

All CVEs / Fhir

CVE-2019-12741Fhir Hapi Fhir

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Jun 5, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Hapi Fhir.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven ca.uhn.hapi.fhir:hapi-fhir-base < 3.8.0 3.8.0 —

Per OSV / GitHub Advisories (GHSA-52mh-p2m2-w625). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fhirhapi_fhir< 3.8.0

Official sources

References

Links published by the sources. Open them with care.