Prompt Injection Attacks on Vision Language Models in Oncology: What Two Nature Communications Studies Show About Attacking Medical AI
Clusmann et al., Nature Communications 16:1239 (2025), and Yang et al., "Adversarial prompt and fine-tuning attacks threaten medical large language models", 16:9011 (2025): designs, attack success rates, defenses that failed, and what hospitals should require.

Dr. Sven Jungmann
CEO

"Prompt injection attacks on vision language models in oncology" is by Jan Clusmann, Dyke Ferber, Isabella C. Wiest, Carolin V. Schneider, Titus J. Brinker, Sebastian Foersch, Daniel Truhn and Jakob Nikolas Kather, published in Nature Communications, volume 16, article 1239, on 1 February 2025, DOI 10.1038/s41467-024-55631-x. The "2024" and "55631" in the DOI are part of the identifier: the manuscript was received in July 2024 and accepted on 17 December 2024, and the article sits in the 2025 volume. The companion paper that often appears in the same searches is "Adversarial prompt and fine-tuning attacks threaten medical large language models" by Yifan Yang, Qiao Jin, Furong Huang and Zhiyong Lu, Nature Communications, volume 16, article 9011, published 9 October 2025, DOI 10.1038/s41467-025-64062-1. Both are open access.
The two papers are often cited together. They test different things, and the difference decides what a hospital should do about them.
Two studies, two attack surfaces
Clusmann and colleagues, working across Dresden, Aachen, Heidelberg, Mannheim and Mainz, asked whether text hidden inside a medical image can change what a vision language model reports about that image. The attacker in their scenario never touches the model. It is enough to control a piece of the input, for example an image that arrives from an external imaging provider, or a browser extension that alters what a clinician sends to a web interface.
Yang and colleagues, at the National Library of Medicine and the University of Maryland, studied two other routes: an attacker who can alter the hidden instructions of an application built on a language model, and an attacker who distributes a model fine-tuned on poisoned examples. Their attack surface is the software supply chain around the model.
Clusmann et al.: instructions hidden in the image
Design
The team used single images from 18 patients with histologically confirmed malignant lesions, three each from six modalities: liver CT, MRI and ultrasound, dermatoscopic photographs of melanoma, endoscopy of gastrointestinal cancers, and hematoxylin-eosin histology of adenocarcinomas. Each image went to the model with the prompt "Describe this image" and a structured output template.
They tested three injection strategies. In text injection, the instruction to describe the organ but state that it looks healthy was typed into the prompt. In visual injection, the same instruction was written into the image. In delayed visual injection, it sat in the image sent just before the target image. Visual injections came in high contrast, low contrast (dark gray text on a black background, the usual background of radiology images) and a tiny font. The low-contrast and tiny variants are the ones a human looking at the image would likely miss. With negative controls, each model saw 72 variations in three replicates, 216 queries per model, and the paper reports 594 attacks in total.
Five models were screened. Only those that recognized the organ in at least half of the images went forward: Claude 3 Opus (59 percent organ detection), Claude 3.5 Sonnet (80 percent), GPT-4o (79 percent) and Reka Core (74 percent). Gemini 1.5 could not be assessed because its guardrails blocked radiology images. The models were accessed between June and September 2024, through web interfaces and APIs.
Results
A licensed physician scored whether each answer missed the lesion. Without injection, the lesion miss rate was already 35 percent for Claude 3 Opus, 17 percent for Claude 3.5 Sonnet, 22 percent for GPT-4o and 41 percent for Reka Core. With injection it rose to 70, 57, 89 and 92 percent. The attack success rate, defined as the difference between the two, was 33 percent for Claude 3 Opus, 40 percent for Claude 3.5 Sonnet, 67 percent for GPT-4o and 51 percent for Reka Core, significant for each model and across all models combined.
Attacks worked in every modality, with average success rates of 32 percent for ultrasound and endoscopy, 49 percent for MRI, 58 percent for CT and 61 percent for histology. Hiding the text in low contrast or small font was about as effective as plain text for GPT-4o and Reka Core. For the two Claude models, low contrast reduced the effect. Delayed injection, where the instruction arrived one image earlier, produced less harmful answers overall.
Defenses tested
The authors tried two mitigations and their combination. An "ethical" prompt added one sentence asking the model to adhere to the highest ethical standards. A supervisor setup passed the first answer to a second instance of the same model, told to look for malicious content and either confirm the answer or give its own. Neither worked for Claude 3 Opus, GPT-4o or Reka Core. For Claude 3.5 Sonnet, the ethical prompt lowered the success of injections from 64.8 to 27.8 percent. The supervisor result matters beyond this study: a second call to the same model, reading the same poisoned input, did not catch the attack.
What it can and cannot support
The study shows that four general-purpose models available in mid-2024 followed instructions written into medical images, across six modalities, often enough to turn a visible cancer into a normal report. It does not show how often this happens in practice, how a specific clinical product behaves, or whether current model versions are equally vulnerable. The sample is 18 single images, partly from public sources, with one instruction phrasing. Lesion misses were scored by one physician. The baseline miss rates of 17 to 41 percent show, independently of any attack, that single-image cancer reads by general-purpose models are no clinical setting.
Yang et al.: attacks through the prompt and the weights
Design
Yang and colleagues used 1,200 discharge notes from MIMIC-III, summarized by GPT-4, with 1,000 for fine-tuning and 200 for testing, plus 200 patient summaries from PMC-Patients to test transfer. Three tasks stood in for prevention, diagnosis and treatment: COVID-19 vaccination guidance, medication prescribing, and recommendations for diagnostic tests. The attack goals were to discourage vaccination, to recommend a harmful drug combination involving ibuprofen, and to order unnecessary ultrasound, X-ray, CT and MRI examinations.
The prompt-based attack appended a malicious instruction to the system prompt, the hidden instructions that an application sends with every user query. The authors frame this as a third-party application, for example a custom GPT, whose builder or an intruder alters the instructions without the end user seeing them. This is different from text smuggled into a patient document. The fine-tuning attack trained models on the adversarial answers and assumed the attacker distributes the resulting weights.
Results
Under the prompt attack, GPT-4 recommended vaccination in 3.98 percent of test cases instead of 100 percent at baseline; GPT-4o in 6.47 instead of 88.06 percent. Recommendations of the dangerous drug combination rose from 0.50 to 80.60 percent for GPT-4 and from 1.00 to 61.19 percent for GPT-4o. MRI recommendations rose from 24.88 to 88.56 percent for GPT-4 and from 29.85 to 93.53 percent for GPT-4o. Fine-tuning on poisoned data produced the same shifts, slightly smaller, in both proprietary and open models (Llama-2 and Llama-3.3 variants, Vicuna-13B, PMC-LLaMA-13B). More poisoned training data meant higher attack success.
Three findings matter most for procurement. First, GPT-4o fine-tuned on poisoned data performed like a cleanly fine-tuned model on MedQA, PubMedQA and MedMCQA, so a benchmark check would not reveal the tampering. Second, newer models were not more robust: Llama-3.3 70B was more susceptible than its Llama-2 predecessors, and GPT-4o no more robust than GPT-4. Third, the manipulated answers came with plausible clinical justifications, and GPT-4 asked to tell clean from manipulated responses scored below 1 percent accuracy.
Defenses tested
Paraphrasing the input with GPT-4o before passing it to the model changed attack success for GPT-4o by an average of −33.37 percent for the prompt attack and −42.65 percent for the fine-tuning attack, as the authors report it, with much smaller effects for Llama-3.3 70B. An attacker who fine-tuned on paraphrased prompts largely neutralized this defense. Rescaling the weights of the poisoned low-rank adapters lowered success in some tasks, most for X-ray recommendations (from 100 to 72 percent), and less where the attack was strongest. The authors' practical advice is modest: make all prompts visible to users, and use fine-tuned models only from trusted sources.
What it can and cannot support
The study shows that whoever controls the instructions or the weights of a medical language model can steer its recommendations while leaving its benchmark scores and the fluency of its reasoning intact. The prompts were written by hand, the tasks were three, and the notes were summarized from one US intensive care database. It says nothing about document-borne injection, because it did not test it.
What later work adds
Two follow-up studies extend the image findings. In npj Digital Surgery in July 2026, Zheyuan Zhang and colleagues, including Clusmann and Kather, tested four models (Gemini 1.5 Pro, Gemini 2.5 Pro, GPT-o4-mini-high and Qwen 2.5-VL) on 100 surgical video clips across eight decision-support tasks. All four lost accuracy under textual and visual injection. GPT-o4-mini-high fell from 0.65 to 0.24 under a prolonged visual attack, and injections that persisted across many frames did more damage than single-frame ones.
In Scientific Reports in October 2026, Babak Saravi and colleagues ran 58,320 inference calls on 270 dental panoramic radiographs with GPT-4o, Gemini 2.5 Flash, Claude Sonnet 4.5 and MedGemma 4B. All four were vulnerable, with attack success up to 62.6 percent for GPT-4o. They also measured defenses against the same attacks. Detecting text in the image and painting it out lowered the pooled success rate from 15.6 to 0.2 percent. Marking untrusted input in the prompt (spotlighting) reached 7.4 percent, cropping the image margins 9.5 percent. The failure modes are instructive. Most attacks that survived text removal used low-contrast text the detector did not find, and the detector flagged text on 52.6 percent of clean images, harmless here but destructive wherever legitimate text is burned into an image. Spotlighting worked well for two models and barely for MedGemma. The authors point to an advantage specific to their setting: panoramic radiographs in standard German workflows carry no burned-in text, so any text is suspect. That assumption does not hold for a referral letter, a scanned report or a fax, where text is the content.
What hospitals should require from AI that reads external material
Read together, the papers point to controls a hospital can ask about and verify. They map closely onto the mitigations listed for prompt injection in the OWASP Top 10 for LLM Applications 2025.
- An inventory of input channels. Which images, documents, messages and web content reach the model, from whom, and through which software, including browser extensions on clinical workstations.
- Separation of instructions from data. Instructions should come only from the vendor's controlled configuration. Content from patients, referrers and other institutions should reach the model marked as untrusted and in a form that limits its ability to act as an instruction. Ask for measured results against your own document and image types, because the dental study shows the same defense working for one model and failing for another.
- Visible, versioned instructions and model provenance. Yang's attack lived in a system prompt the user could not see and in weights the user could not inspect. Contracts should name the model and version, the source of any fine-tuned weights, and who can change the system instructions, with change logs.
- Limited reach. A model that has read untrusted content should not be able to send messages, place orders or write to the record on its own. Luca Beurer-Kellner and colleagues describe design patterns that constrain what an AI agent can do once untrusted input has entered its context; the general principle applies to clinical software.
- Professional sign-off with the source at hand. Both papers show manipulated output that reads as competent; a reviewer can only catch it with the original image or document one click away. Sign-off leaves a residual risk, because people over-trust fluent automation.
- Logging. Keep the original inputs, the instructions in force, the model version and the output for each generated result, so that an incident can be reconstructed.
- Adversarial testing before and after go-live, using your own modalities and document types and including low-contrast and small-font variants, repeated when the model or its configuration changes.
How this shapes our own software
In our software, a language model prepares drafts from the documents in a hospital case. It does not send letters, place orders or change the hospital record on its own; generated text leaves the system when a person copies or exports it. Structured information keeps its source, so a reviewer can open the passage behind a statement in one click. The agreed workflow requires a physician or responsible professional to sign off each document. None of this makes injection impossible. It limits what an injected instruction can reach and keeps the original document in front of the person who signs.
How these attacks enter a hospital through faxes, PDFs and email, and which questions to put to vendors, is the subject of our earlier piece, Faxes as an Attack Vector. Why sign-off alone does not neutralize fluent errors is covered in Automation Bias at the Bedside.
Sources
- Clusmann J, Ferber D, Wiest IC, Schneider CV, Brinker TJ, Foersch S, Truhn D, Kather JN. Prompt injection attacks on vision language models in oncology. Nature Communications. 2025;16:1239. Published 1 February 2025. doi:10.1038/s41467-024-55631-x. https://www.nature.com/articles/s41467-024-55631-x
- Yang Y, Jin Q, Huang F, Lu Z. Adversarial prompt and fine-tuning attacks threaten medical large language models. Nature Communications. 2025;16:9011. Published 9 October 2025. doi:10.1038/s41467-025-64062-1. https://www.nature.com/articles/s41467-025-64062-1
- Zhang Z, Qadir MI, Carstens M, et al. Prompt injection attacks on vision-language models for surgical decision support. npj Digital Surgery. 2026;1:15. Published 27 July 2026. doi:10.1038/s44484-026-00014-6. https://www.nature.com/articles/s44484-026-00014-6
- Saravi B, Singh DD, Schorn L, Vollmer A, Sproll C, Kübler N, Schrader F. Image-embedded prompt injection vulnerability of vision-language models in dental radiology: a cross-vendor attack–defense evaluation. Scientific Reports. 2026;16:30690. Published 3 October 2026. doi:10.1038/s41598-026-74077-3. https://www.nature.com/articles/s41598-026-74077-3
- OWASP Foundation. LLM01:2025 Prompt Injection. OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llmrisk/llm01-prompt-injection/
- Beurer-Kellner L, Buesser B, Creţu AM, et al. Design Patterns for Securing LLM Agents against Prompt Injections. arXiv preprint. 2025. arXiv:2506.08837. https://arxiv.org/abs/2506.08837


