Security advisory
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.)
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-12741
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:22 UTC · Revision 1
Source evidence
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.)
osv:CVE-2019-12741
Complete source record
{
"id": "7adebf3a4b1731485512f30fdacf9c7ab4e3b3788adeb1ea91d1ca108cc0064a",
"url": "https://osv.dev/vulnerability/CVE-2019-12741",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-12741",
"summary": "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.)",
"evidence": "osv:CVE-2019-12741",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2019-12741",
"aliases": [
"CVE-2019-12741",
"GHSA-52mh-p2m2-w625"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/hapifhir/hapi-fhir",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "73aa53be8fe5496e81d4a88a0bca25dfb078138b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:fhir:hapi_fhir:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.8.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.7.0",
"v3.6.0",
"v3.2.0",
"v3.0.0",
"v2.5",
"v2.3",
"v2.2",
"v2.1",
"v2.0",
"v1.6",
"v1.5",
"v1.4",
"v1.2",
"v1.1",
"v0.9",
"v0.8",
"v0.6",
"v0.5",
"v0.4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12741.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/jamesagnew/hapi-fhir",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "8f41159eb147eeb964cad68b28eff97acac6ea9a"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "8f41159eb147eeb964cad68b28eff97acac6ea9a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12741.json",
"vanir_signatures": [
{
"id": "CVE-2019-12741-3ddf3ba6",
"digest": {
"threshold": 0.9,
"line_hashes": [
"322394646498748269869226448963532292247",
"297223349063439588668128140357273445862",
"312204412830696150128672996707971173230",
"314334532338452688053529858770175905776",
"324534276017699301977482741958841197816",
"334030326527818991524887231118380979379",
"220149531720126509925678213887013115608",
"192017219783609408020722629308401284727",
"40229981143918095712823181645196261844",
"238827581832589460966471150852714985452",
"195741536995231971118927749398729015169",
"247830420808296325277770412206244366966",
"262708264908355614453407038386470314082",
"107684021343401438874661953476307547660",
"35021954230165303612751477354859184552",
"144978774783867778970156060699643999719",
"152540356137832457088280615946424058829",
"294874016313440058176341677597984842672",
"219339966706692805641631538870918384977"
]
},
"source": "https://github.com/jamesagnew/hapi-fhir/commit/8f41159eb147eeb964cad68b28eff97acac6ea9a",
"target": {
"file": "hapi-fhir-testpage-overlay/src/main/java/ca/uhn/fhir/to/BaseController.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2019-12741-ac1cb6a3",
"digest": {
"length": 796,
"function_hash": "13979340989605696099391175575559691536"
},
"source": "https://github.com/jamesagnew/hapi-fhir/commit/8f41159eb147eeb964cad68b28eff97acac6ea9a",
"target": {
"file": "hapi-fhir-testpage-overlay/src/main/java/ca/uhn/fhir/to/BaseController.java",
"function": "addCommonParams"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:19:51Z"
}
}
],
"modified": "2026-10-24T14:19:51.841531074Z",
"provider": "osv",
"references": [
"https://github.com/jamesagnew/hapi-fhir/releases/tag/v3.8.0",
"https://github.com/jamesagnew/hapi-fhir/commit/8f41159eb147eeb964cad68b28eff97acac6ea9a",
"https://github.com/jamesagnew/hapi-fhir/issues/1335"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-12741",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443498,
"published_at": "2019-06-05T15:29:01.873+00:00"
}