CoChat

Vulnerability of Large Language Models to Prompt Injection When Providing Medical Advice

Lee, Ro Woon, Jun, Tae Joon, Lee, Jeong-Moo, Cho, Soo Ick, Park, Hyung Jun, Suh, Jungyo · 2025 · JAMA Network Open
Cited by 54

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.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1001/jamanetworkopen.2025.49963

Cites

17 of 17 references verified0 citation errors · 0 not checkable

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.

A few free checks a day · papers already verified open instantly · results are public

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?

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

Show all 17 references

Research works printed but not linked: 17

  1. 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
  2. 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
  3. Harris, 2020, Array programming with NumPy., Nature, 585, 357, 10.1038/s41586-020-2649-2 · DOI · Paper page
  4. Wang, 2016, Red ginseng and cancer treatment., Chin J Nat Med, 14, 7, 10.1186/s13020-019-0231-3 · DOI
  5. 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
  6. 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
  7. 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
  8. Clusmann, 2025, Prompt injection attacks on vision language models in oncology., Nat Commun, 16, 1239, 10.1038/s41467-024-55631-x · DOI · Paper page
  9. Kim, 2024, Fine-tuning LLMs with medical data: can safety be ensured?, NEJM AI, 10.1056/AIcs2400390 · DOI
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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

See all 54

Metadata

Authors
Lee, R. W., Jun, T. J., Lee, J.-M., Cho, S. I., Park, H. J., & Suh, J.
Venue
JAMA Network Open
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.