Between Safe Boundaries: Exploiting Temporal Consistency for Jailbreaking Text-To-Video Generation Models

Xingkai Peng, Jun Jiang, Jiayang Liu, Kejiang Chen, Weiming ZhangarXiv 2026

TL;DR

The paper introduces BSB (Between Safe Boundaries), a novel jailbreak framework that exploits the inherent temporal consistency of text-to-video (T2V) models. By framing a harmful intent as a smooth transition between two individually benign start and end states, BSB forces the model to automatically generate unsafe intermediate frames. This approach bypasses standard safety filters with high query efficiency by combining text-based Monte Carlo Tree Search (MCTS) with sparse video calibration.

What Problem Does This Paper Address?

As text-to-video (T2V) generation models (like Sora, Veo, and Kling) become widely deployed, ensuring their safety against malicious "jailbreak" prompts is critical. Current T2V defense mechanisms rely on text-based filters (screening the input prompt) and video-based filters (checking generated frames for violations).

However, existing jailbreak methods are largely adapted from text-to-image (T2I) paradigms. They treat video generation as a static process or a sequence of independent scenes, completely ignoring temporal consistency—the requirement that video frames evolve smoothly and coherently over time. Furthermore, existing attacks require repeatedly querying the target video generation API to optimize prompts, which is computationally prohibitive and expensive in real-world black-box scenarios.

Methods

The authors propose BSB (Between Safe Boundaries), a structured and query-efficient jailbreak framework consisting of three core components:

  1. Temporal Boundary Decomposition: Instead of directly optimizing a harmful prompt, BSB uses a Large Language Model (LLM) as a semantic analyzer to split the harmful intent into two benign boundary states: an initial safe prompt ($p^-$) and a terminal safe prompt ($p^+$). Neither prompt contains explicit violations, allowing them to easily pass text filters.
  2. Text-side Proxy Search: To avoid expensive video generation queries during optimization, BSB conducts a search entirely within a low-cost textual proxy space using Monte Carlo Tree Search (MCTS). Guided by a Upper Confidence Bound for Trees (UCT) policy, it explores discrete prompt rewriting actions based on a composite reward balancing safety filter evasion, semantic relevance, and inferred harmfulness.
  3. Sparse Video-based Calibration: To ground the text search in actual visual outputs, BSB periodically generates videos only for the top-$k$ promising leaf nodes. A Vision-Language Model (VLM) evaluates these videos, providing cross-modal feedback to re-anchor and recalibrate the MCTS tree without incurring the cost of dense video queries.
Figure 1: Illustration of BSB. Given a harmful intent, BSB searches for two benign boundary states, A and C, that spec- ify the beginning and end of the video and can individually bypass safety filters. Conditioned on these two searched ad- versarial prompts, the T2V model automatically synthesizes intermediate states, such as B, to maintain temporal con- sistency. Although A and C are safe in isolation, the auto- completed intermediate state B may exhibit unsafe seman- tics, thereby enabling harmful generation.
Overview of the BSB pipeline, detailing Temporal Decomposition, Multi-Modal Co-Search, and Sparse Video-based Calibration.

Datasets

The framework was evaluated using a subset of T2VSafetyBench, a comprehensive benchmark for safety-critical evaluation of T2V models. The evaluation set spans all 14 of the benchmark's safety categories (including pornography, violence, gore, illegal activities, and misinformation), with 50 randomly sampled prompts per category, totaling 700 evaluation prompts.

Key Insights and Ideas

  • The Interpolation Vulnerability: T2V models are explicitly trained to smoothly bridge the gap between visual states. BSB reveals that if the start and end frames of a video are safe, but the logical path between them is inherently unsafe, the model's own temporal consistency mechanism will "fill in the blanks" with harmful content.
  • Exploiting the Defense Gap: Standard safety filters typically assess prompts or frames in isolation. They fail to account for the semantic evolution across time, making them blind to malicious content generated purely through temporal interpolation.
  • Text-to-Video Asymmetry: You do not need to optimize directly in the video space to break a video model. A cheap textual proxy space combined with strategic, sparse video checkpoints is highly effective at guiding adversarial search under a strict query budget.

Key Results

The authors evaluated BSB against prominent commercial T2V models, including Google's Veo 3.1, OpenAI's Sora 2, Seedance, and Kling v1, comparing it against baselines like T2VSafetyBench (TSB), DACA, and SceneSplit.

  • Higher Attack Success Rate (ASR): BSB consistently achieved the highest ASR across all models: 69.6% on Veo 3.1, 60.4% on Sora 2, 61.3% on Seedance, and 64.6% on Kling v1. This represents an average 18.6% relative improvement over the strongest baseline (SceneSplit).
  • Pronounced Gains in High-Risk Categories: The attack was exceptionally effective in event-centric, high-risk categories like Pornography, Violence, and Gore, where content naturally emerges through semantic evolution over time.
  • High Query Efficiency: Thanks to the text-side proxy search, the full BSB framework required an average of only 2.46 video queries per prompt to execute a successful attack, making it highly practical against commercial black-box APIs.

Limitations and Future Work

Despite its success, the authors note a few limitations:

  • Query Dependence: While highly efficient, BSB still requires a small number of video-level queries for calibration, which still incurs API costs.
  • Decomposition Bottleneck: The attack's effectiveness is heavily dependent on the quality of the initial LLM-guided boundary decomposition. If the LLM fails to generate natural, contextually coherent boundary prompts, the attack performance degrades.

Future Directions: The authors call for the development of temporally aware defense frameworks that explicitly monitor semantic evolution rather than relying solely on prompt screening or static frame checks. They also aim to improve the reliability of the boundary decomposition step to further reduce query overhead.

Summary updated

BibTeX
@misc{peng2026between,
  author = {Xingkai Peng and Jun Jiang and Jiayang Liu and Kejiang Chen and Weiming Zhang},
  title = {{Between Safe Boundaries: Exploiting Temporal Consistency for Jailbreaking Text-To-Video Generation Models}},
  year = {2026},
  eprint = {2607.17279},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.17279},
}
Figure