Healthcare organizations routinely handle extremely sensitive personal data – including patient records, diagnostic histories, financial details, and personal identifiers. This has made the sector an attractive target for cybercriminals – and the consequences of a breach are severe.
According to IBM’s 2025 Cost of a Data Breach Report, healthcare data breaches have been the most expensive of all businesses for the past 14 years. The sector topped IBM’s league table for breach costs in 2025, with an average of $7.42 million per incident in the US.
A perfect storm of technical vulnerabilities and financial gain entices cybercriminals: rigid legacy systems, an increasingly digitized and distributed IT infrastructure, and the high value of patient data on the dark web. Compromised medical data commands high prices because, unlike financial credentials, patients cannot change their diagnoses, dates of birth, or insurance histories.
Healthcare organizations have invested in perimeter, server-side, and ransomware defenses – but the client-side attack surface remains exposed. In the absence of robust controls, the browser – where patients interact with portals, submit forms, and enter PHI – is a major vulnerability.
Top Risks Facing Healthcare
Before addressing the client-side gap, healthcare organizations must understand the sector’s broader threat landscape.
1. Phishing
Phishing, in which attackers use deceptive emails to harvest credentials or deploy malware, remains one of the most common attack vectors across all sectors – and healthcare is a prime target. Successful phishing campaigns are typically used to harvest PHI or deploy malware as an initial step toward compromising this sensitive data at scale.
In May 2026. Microsoft warned of a large-scale phishing campaign that disproportionately targeted the healthcare sector, using credential theft and token compromise to bypass multifactor authentication.
Conventional defenses, such as email filtering and security awareness training, mitigate exposure but can’t eliminate it. Aware of this, cybercriminals deploy phishing techniques to target healthcare because of its large, distributed workforce. Often, a single compromised credential is all an attacker needs to compromise PHI. That makes limiting what can be accessed and exfiltrated through the browser a critical second line of defense.
2. Ransomware
Ransomware attacks – malware that automatically encrypts or steals an organization’s systems and demands payment for their release – against critical sectors surged 34% year-on-year in 2025, with healthcare among the most frequently targeted. This threat is pervasive because operational downtime directly endangers patient safety, increasing pressure to pay.
Recent examples include the June 2024 Synnovis ransomware attack, which disrupted pathology services used by NHS organizations in England and delayed over 11,000 appointments. Another example is the February 2024 Change Healthcare ransomware attack in the US, which compromised the personal and healthcare data of approximately 190 million individuals.
3. SQL injection and XSS
SQL injection and cross-site scripting (XSS) remain significant threats to healthcare web applications.
- SQL injection: attackers insert malicious code into database queries to extract or manipulate data.
- Cross-site scripting (XSS): malicious scripts are injected into web pages and executed in users’ browsers.
For example, in 2026, OpenEMR – a medical practice management software – disclosed an SQL injection flaw in its Patient REST API that could expose PHI and credentials. This occurred alongside multiple stored XSS vulnerabilities in patient-portal and staff-facing workflows that allowed malicious JavaScript to execute in clinicians’ browsers.
4. Third-party vendor risk
Third-party risk – where attackers exploit weaknesses in external suppliers, partners, or tools that have access to an organization’s systems or data – is a perennial focus for healthcare security teams.
The scale of this threat is underscored by an eye-watering stat: in 2025, over 80% of PHI stolen in the US was taken from third-party vendors and business associates, not from hospitals themselves. The Synnovis and Change Healthcare ransomware attacks are cautionary tales of how third-party risk can be exploited when sufficient security measures are not in place.
The Client-Side Gap
What’s less well documented – and where healthcare organizations remain worryingly exposed – is the substantial risk posed client-side: the scripts, pixels, and third-party code running directly in the patient’s browser.
Third-party tracking pixels and PHI leakage
Third-party tracking pixels are small pieces of JavaScript code embedded in web pages that collect and transmit data about user behavior to external platforms. In healthcare, their proliferation has created a significant attack surface. Almost all hospitals (98.6%) use at least one tracking code that transfers data to third parties. Around a third (33%) of healthcare websites still carry Meta pixel tracking code.
Third-party analytics pixels, advertising tags, and session recording tools execute in the browser with direct access to the pages patients interact with – including form fields containing PHI. Healthcare organizations must have real-time visibility and control over these scripts. Without this, they have no reliable way of knowing what data is being collected, where it’s being sent, or whether it’s compliant.
Since hospitals embedded Meta’s third-party trackers on public websites and patient portals, which inadvertently sent sensitive health data to the tech giant without patient consent, settlements have exceeded $10 million.
To gain control of this threat, healthcare organizations must maintain a continuously updated inventory of every third-party script running on patient-facing pages. This provides the oversight needed to enforce least-privilege data access rules that restrict what each script can read, and block unauthorized outbound data transmissions before PHI leaves the browser.
Digital skimming and formjacking
Organizations are increasingly targeted by digital skimming attacks, in which malicious code is injected into patient forms, appointment-booking pages, and payment fields on healthcare portals. Skimming exploits trust in third-party scripts to compromise data as it’s entered, before it’s submitted.
Cybercriminals commonly target valuable form data on healthcare portals by silently modifying legitimate analytics or chat widgets to exfiltrate everything from patient records to financial details.
A Content Security Policy (CSP) can restrict which scripts load, but it can’t monitor or control what authorized scripts do in the browser once they’re running. To protect patient-facing forms, healthcare organizations must augment CSPs with script-level controls. This comprehensive approach restricts which scripts can read patient-entered data and blocks outbound transmission to unauthorized domains.
Code reverse engineering and tampering
Proprietary clinical logic – diagnostic algorithms, patient risk scoring, treatment decision support – is an essential element of healthcare apps. Increasingly, this intellectual property is being embedded directly in client-side JavaScript – an inherently exposed script. This means anyone loading the app in a browser can view and analyze it. AI is making it even easier for threat actors to counter obfuscation and reverse-engineer applications, and as AI dev pipelines increase, more vulnerable code is being shipped.
To protect both patient data and the intellectual property on which the platform is built, organizations must ensure code integrity by implementing LLM-resilient obfuscation and tamper detection – or face the consequences. Without these defenses, cybercriminals can reverse-engineer or modify proprietary algorithms, or use them to map exploitable vulnerabilities in the app.
Regulatory compliance
Regulatory pressure is intensifying on the client side, reflecting its importance from a security perspective. This is playing out across three key pieces of legislation:
- PCI DSS: Since March 2025, PCI DSS v4.0’s client-side security requirements have made it mandatory to implement documented controls for all scripts that execute in the payment page environment.
- HIPAA: In the US, the enforcement of HIPAA rules around how healthcare entities and their business associates protect PHI in physical and digital environments remains vigorous.
- GDPR: In Europe, GDPR continues to impose strict consent and data minimization obligations that third-party pixels routinely violate in healthcare contexts.
Client-side protection – enforcing script-level data access controls, maintaining detailed audit trails of third-party behavior, and blocking unauthorized data collection in real time – enables healthcare organizations to achieve ongoing compliance with these frameworks, without adding significant operational burden.
Closing the Gap
Client-side protection must not be an afterthought for healthcare organizations. Unmonitored third-party pixels, sophisticated skimming techniques, vulnerable application code, and the value of PHI combine to make the browser one of the sector’s most exposed attack surfaces.
Jscrambler’s unified client-side security platform gives healthcare security teams real-time visibility and control over every script running in the browser. This clarity prevents unauthorized data collection and PHI exposure before it happens – from blocking rogue third-party pixels to protecting proprietary application code against reverse engineering.




















The Heap Snapshot tool enables you to capture a detailed memory report of the main thread, web workers, or iframes, allowing you to analyze how memory is being utilized.
