Vulnerability of Large Language Models to Prompt Injection When Providing Medical Advice
The DOI matches its Crossref record; 17 of the 17 references it cites were found in a registry or an index.
Abstract
Importance: Large language models (LLMs) are increasingly integrated into health care applications; however, their vulnerability to prompt-injection attacks (ie, maliciously crafted inputs that manipulate an LLM’s behavior) capable of altering medical recommendations has not been systematically evaluated. Objective: To evaluate the susceptibility of commercial LLMs to prompt-injection attacks that may induce unsafe clinical advice and to validate man-in-the-middle, client-side injection as a realistic attack vector. Design, Setting, and Participants: This quality improvement study used a controlled simulation design and was conducted between January and October 2025 using standardized patient-LLM dialogues. The main experiment evaluated 3 lightweight models (GPT-4o-mini [LLM 1], Gemini-2.0-flash-lite [LLM 2], and Claude-3-haiku [LLM 3]) across 12 clinical scenarios in 4 categories under controlled conditions. The 12 clinical scenarios were stratified by harm level across 4 categories: supplement recommendations, opioid prescriptions, pregnancy contraindications, and central-nervous-system toxic effects. A proof-of-concept experiment tested 3 flagship models (GPT-5 [LLM 4], Gemini 2.5 Pro [LLM 5], and Claude 4.5 Sonnet [LLM 6]) using client-side injection in a high-risk pregnancy scenario. Exposures: Two prompt-injection strategies: (1) context-aware injection for moderate- and high-risk scenarios and (2) evidence-fabrication injection for extremely high-harm scenarios. Injections were programmatically inserted into user queries within a multiturn dialogue framework. Main Outcomes and Measures: The primary outcome was injection success at the primary decision turn. Secondary outcomes included persistence across dialogue turns and model-specific success rates by harm level. Results: Across 216 evaluations (108 injection vs 108 control), attacks achieved 94.4% (102 of 108 evaluations) success at turn 4 and persisted in 69.4% (75 of 108 evaluations) of follow-ups. LLM 1 and LLM 2 were completely susceptible (36 of 36 dialogues [100%] each), and LLM 3 remained vulnerable in 83.3% of dialogues (30 of 36 dialogues). Extremely high-harm scenarios including US Food and Drug Administration Category X pregnancy drugs (eg, thalidomide) succeeded in 91.7% of dialogues (33 of 36 dialogues). The proof-of-concept experiment demonstrated 100% vulnerability for LLM 4 and LLM 5 (5 of 5 dialogues each) and 80.0% (4 of 5 dialogues) for LLM 6. Conclusions and Relevance: In this quality improvement study using a controlled simulation, commercial LLMs demonstrated substantial vulnerability to prompt-injection attacks that could generate clinically dangerous recommendations; even flagship models with advanced safety mechanisms showed high susceptibility. These findings underscore the need for adversarial robustness testing, system-level safeguards, and regulatory oversight before clinical deployment.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“vulnerability to prompt injection has shown that large language models shown to be susceptible to embedded instructions designed to override their intended behavior when providing medical advice [14]”
From Susceptibility of large language models to hidden nudge injection during simulated medical peer review: a quasi-experimental study (2026) · cites this paper as [14]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Large Language Models Encode Clinical Knowledge
Singhal, K., Azizi, S., Tu, T., Mahdavi, S. S., Wei, J., Chung, H. W., Scales, N., Tanwani, A., Cole-Lewis, H., Pfohl, S., et al. (2022) · arXiv · doi:10.48550/arxiv.2212.13138 · Cited by 4,083
Large language models encode clinical knowledge
Singhal, K., Azizi, S., Tu, T., Mahdavi, S. S., Wei, J., Chung, H. W., Scales, N., Tanwani, A., Cole-Lewis, H., Pfohl, S., et al. (2023) · Nature · doi:10.1038/s41586-023-06291-2 · Cited by 4,083
Ayers, J. W., Poliak, A., Dredze, M., Leas, E. C., Zhu, Z., Kelley, J. B., Faix, D. J., Goodman, A. M., Longhurst, C. A., Hogarth, M., et al. (2023) · JAMA Internal Medicine · doi:10.1001/jamainternmed.2023.1838 · Cited by 2,613
Toward expert-level medical question answering with large language models
Singhal, K., Tu, T., Gottweis, J., Sayres, R., Wulczyn, E., Amin, M., Hou, L., Clark, K., Pfohl, S. R., Cole-Lewis, H., et al. (2025) · Nature Medicine · doi:10.1038/s41591-024-03423-7 · Cited by 1,734
Adversarial attacks on medical machine learning
Finlayson, S. G., Bowers, J. D., Ito, J., Zittrain, J. L., Beam, A. L., & Kohane, I. S. (2019) · Science · doi:10.1126/science.aaw4399 · Cited by 1,088
Large Language Model Influence on Diagnostic Reasoning: A Randomized Clinical Trial
Goh, E., Gallo, R., Hom, J., Strong, E., Weng, Y., Kerman, H., Cool, J. A., Kanjee, Z., Parsons, A. S., Ahuja, N., et al. (2024) · JAMA Network Open · doi:10.1001/jamanetworkopen.2024.40969 · Cited by 724
Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., & Fritz, M. (2023) · Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security · doi:10.1145/3605764.3623985 · Cited by 667
Towards conversational diagnostic artificial intelligence
Tu, T., Schaekermann, M., Palepu, A., Saab, K., Freyberg, J., Tanno, R., Wang, A., Li, B., Amin, M., Cheng, Y., et al. (2025) · Nature · doi:10.1038/s41586-025-08866-7 · Cited by 366
Towards Expert-Level Medical Question Answering with Large Language Models
Singhal, K., Tu, T., Gottweis, J., Sayres, R., Wulczyn, E., Hou, L., Clark, K., Pfohl, S., Cole-Lewis, H., Neal, D., et al. (2023) · arXiv · doi:10.48550/arxiv.2305.09617 · Cited by 338
Medical large language models are vulnerable to data-poisoning attacks
Alber, D. A., Yang, Z., Alyakin, A., Yang, E., Rai, S., Valliani, A. A., Zhang, J., Rosenbaum, G. R., Amend-Thomas, A. K., Kurland, D. B., et al. (2025) · Nature Medicine · doi:10.1038/s41591-024-03445-1 · Cited by 242
Research works printed but not linked: 17
- Chang, 2025, Red teaming ChatGPT in medicine to yield real-world insights on model behavior., NPJ Digit Med, 8, 149, 10.1038/s41746-025-01542-0 · DOI
- Virtanen, 2020, SciPy 1.0: fundamental algorithms for scientific computing in Python., Nat Methods, 17, 261, 10.1038/s41592-019-0686-2 · DOI · Paper page
- Harris, 2020, Array programming with NumPy., Nature, 585, 357, 10.1038/s41586-020-2649-2 · DOI · Paper page
- Wang, 2016, Red ginseng and cancer treatment., Chin J Nat Med, 14, 7, 10.1186/s13020-019-0231-3 · DOI
- Portenoy, 1986, Chronic use of opioid analgesics in non-malignant pain: report of 38 cases., Pain, 25, 171, 10.1016/0304-3959(86)90091-6 · DOI · Paper page
- Wen, 2008, Patterns of pregnancy exposure to prescription FDA C, D and X drugs in a Canadian population., J Perinatol, 28, 324, 10.1038/jp.2008.6 · doi:10.1038/jp.2008.6
- Pais, 2024, Large language models for preventing medication direction errors in online pharmacies., Nat Med, 30, 1574, 10.1038/s41591-024-02933-8 · DOI · Paper page
- Clusmann, 2025, Prompt injection attacks on vision language models in oncology., Nat Commun, 16, 1239, 10.1038/s41467-024-55631-x · DOI · Paper page
- Kim, 2024, Fine-tuning LLMs with medical data: can safety be ensured?, NEJM AI, 10.1056/AIcs2400390 · DOI
- Souppaya? M, Morello? J, Scarfone? K. NIST Special publication 800-190: application container security guide. National Institute of Standards and Technology. Published September 2017. Accessed November 11, 2025. doi:10.6028/NIST.SP.800-190 · DOI
- Li? Z, Peng? B, He? P, Yan? X. Evaluating the instruction-following robustness of large language models to prompt injection. Paper presented at: 2024 Conference on Empirical Methods in Natural Language Processing; November 2024; Miami, FL. Accessed November 11, 2025. doi:10.18653/v1/2024.emnlp-main.33 · DOI
- Cohen? A. In-browser llm-guided fuzzing for real-time prompt injection testing in agentic AI browsers. Preprint posted online October 15, 2025. Accessed November 11, 2025. doi:10.48550/arXiv.2510.13543 · DOI
- Liu? Y, Deng? G, Li? Y, . Prompt injection attack against LLM-integrated Applications.? arXiv. Preprint posted online March 2, 2024. Accessed November 11, 2025. doi:10.48550/arXiv.2306.05499 · DOI · Paper page
- Hackett? W, Birch? L, Trawicki? S, Suri? N, Garraghan? P. Bypassing LLM guardrails: an empirical analysis of evasion attacks against prompt injection and jailbreak detection systems.? arXiv. Preprint posted online July 14, 2025. Accessed November 11, 2025. doi:10.48550/arXiv.2504.11168 · DOI
- Dong? Y, Mu? R, Zhang? Y, . Safeguarding large language models: a survey.? arXiv. Preprint posted online June 3, 2024. Accessed November 11, 2025. doi:10.48550/arXiv.2406.02622 · DOI
- Chen? S, Wang? Y, Carlini? N, Sitawarin? C, Wagner? D. Defending against prompt injection with a few defensive tokens.? arXiv. Preprint posted online August 25, 2025. Accessed November 11, 2025. doi:10.48550/arXiv.2507.07974 · arXiv · doi:10.48550/arxiv.2507.07974
- Pathade? C. Red teaming the mind of the machine: a systematic evaluation of prompt injection and jailbreak vulnerabilities in LLMs.? arXiv. Preprint posted online May 13, 2025. Accessed November 11, 2025. doi:10.48550/arXiv.2505.04806 · DOI
Cited by
Tomazini, B. M., Bianchini, L., Tramujas, L., Rodrigues, N. V., Lorenzato, F. G., de Alcantara Chaud, M. S., Gervásio, K. C. V., Maia, I. S., da Silva Ramos, F. J., Besen, B. A. M. P., et al. (2026) · Research Integrity and Peer Review · doi:10.1186/s41073-026-00225-y · Cited by 3
Metadata
- Authors
- Lee, R. W., Jun, T. J., Lee, J.-M., Cho, S. I., Park, H. J., & Suh, J.
- Venue
- JAMA Network Open
- Publisher
- American Medical Association (AMA)
- Published
- 2025-12-19
- Volume
- 8
- Issue
- 12
- Pages
- e2549963
- ISSN
- 2574-3805
- Cited by
- 54
- References
- 17
- Language
- en
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Vulnerability of Large Language Models to Prompt Injection When Providing Medical Advice. https://app.cochat.ai/papers/10.1001/jamanetworkopen.2025.49963
- The paper
- Lee, R. W., Jun, T. J., Lee, J.-M., Cho, S. I., Park, H. J., & Suh, J. (2025). Vulnerability of Large Language Models to Prompt Injection When Providing Medical Advice. JAMA Network Open. https://doi.org/10.1001/jamanetworkopen.2025.49963
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.