Contextual Image Attack: How Visual Context Exposes Multimodal Safety Vulnerabilities

Yuan Xiong, Ziqi Miao, Lijun Li, Chen Qian, Jie Li +1 more
12/2/2025
cs.CVcs.CLcs.CR

No official code found. Best implementation: xiongyuaay/Contextual-Image-Attack (11 stars, MIT, last commit 2026-04-01).

Abstract

While Multimodal Large Language Models (MLLMs) show remarkable capabilities, their safety alignments are susceptible to jailbreak attacks. Existing attack methods typically focus on text-image interplay, treating the visual modality as a secondary prompt. This approach underutilizes the unique potential of images to carry complex, contextual information. To address this gap, we propose a new image-centric attack method, Contextual Image Attack (CIA), which employs a multi-agent system to subtly embeds harmful queries into seemingly benign visual contexts using four distinct visualization strategies. To further enhance the attack's efficacy, the system incorporate contextual element enhancement and automatic toxicity obfuscation techniques. Experimental results on the MMSafetyBench-tiny dataset show that CIA achieves high toxicity scores of 4.73 and 4.83 against the GPT-4o and Qwen2.5-VL-72B models, respectively, with Attack Success Rates (ASR) reaching 86.31\% and 91.07\%. Our method significantly outperforms prior work, demonstrating that the visual modality itself is a potent vector for jailbreaking advanced MLLMs.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of “Contextual Image Attack: How Visual Context Exposes Multimodal Safety Vulnerabilities”

111Shell, PythonNov 21, 20256 months agoMIT

Similar Papers

Cite this paper

@article{xiong2025contextual,
  title  = {Contextual Image Attack: How Visual Context Exposes Multimodal Safety Vulnerabilities},
  author = {Yuan Xiong and Ziqi Miao and Lijun Li and Chen Qian and Jie Li and Jing Shao},
  year   = {2025},
  eprint = {2512.02973},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.02973v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.02973.svg)](https://codeofpaper.com/paper/2512.02973)

Discussion